From patchwork Sat Jan 16 12:48:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 8049021 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 096409F716 for ; Sat, 16 Jan 2016 13:05:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 426F52034C for ; Sat, 16 Jan 2016 13:05:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CA57201E4 for ; Sat, 16 Jan 2016 13:05:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751576AbcAPNFF (ORCPT ); Sat, 16 Jan 2016 08:05:05 -0500 Received: from glaubenleben.de ([85.214.105.140]:57861 "EHLO glaubenleben.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbcAPNFE (ORCPT ); Sat, 16 Jan 2016 08:05:04 -0500 X-Greylist: delayed 960 seconds by postgrey-1.27 at vger.kernel.org; Sat, 16 Jan 2016 08:05:04 EST Received: from p4fcbde06.dip0.t-ipconnect.de ([79.203.222.6] helo=localhost) by glaubenleben.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1aKQHo-0004CO-4G; Sat, 16 Jan 2016 13:48:56 +0100 Received: from andi by localhost with local (Exim 4.84) (envelope-from ) id 1aKQHn-0002mX-4l; Sat, 16 Jan 2016 13:48:55 +0100 From: Andreas Kemnade To: Evgeniy Polyakov , hns@goldelico.com, Fabian Frederick , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH RESEND] omap_hdq: fix usecount handling Date: Sat, 16 Jan 2016 13:48:50 +0100 Message-Id: <1452948530-10639-1-git-send-email-andreas@kemnade.info> X-Mailer: git-send-email 2.1.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output Signed-off-by: Andreas Kemnade Reviewed-by: Vignesh R Acked-by: Evgeniy Polyakov --- drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index 0e2f43b..a2eec97 100644 --- a/drivers/w1/masters/omap_hdq.c +++ b/drivers/w1/masters/omap_hdq.c @@ -618,7 +618,6 @@ static u8 omap_w1_read_byte(void *_hdq) hdq_disable_interrupt(hdq_data, OMAP_HDQ_CTRL_STATUS, ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK); - hdq_data->hdq_usecount = 0; /* Write followed by a read, release the module */ if (hdq_data->init_trans) {