Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758097Ab3FLVpw (ORCPT ); Wed, 12 Jun 2013 17:45:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53472 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753646Ab3FLVpu (ORCPT ); Wed, 12 Jun 2013 17:45:50 -0400 Date: Wed, 12 Jun 2013 14:46:27 -0700 From: Greg Kroah-Hartman To: Thierry Reding Cc: Sachin Kamat , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pwm: Fill in missing .owner fields Message-ID: <20130612214627.GA486@kroah.com> References: <1371036553-32263-1-git-send-email-thierry.reding@gmail.com> <20130612195917.GA31835@mithrandir> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130612195917.GA31835@mithrandir> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 30 On Wed, Jun 12, 2013 at 09:59:18PM +0200, Thierry Reding wrote: > On Wed, Jun 12, 2013 at 05:05:18PM +0530, Sachin Kamat wrote: > > Hi Thierry, > > > > On 12 June 2013 16:59, Thierry Reding wrote: > > > Some drivers don't set the .owner fields of the struct device_driver or > > > struct pwm_ops, which causes the module usage count to become wrong. > > > > > > Recently a patch [1] was added to solve this issue of missing .owner > > fileds in struct platform_driver. > > Yes I saw that, but thought it might be good to initialize them anyway. > Especially since a couple of the drivers are I2C and I believe there's > no similar patch for those. It shouldn't be difficult to come up with > the corresponding patch, though. > > I wonder if it'd make sense to remove all the explicit assignments of > .owner = THIS_MODULE in platform drivers once the patch you mentioned > has been merged. Cc'ing Greg to find out what he thinks about it. Sure, they can be removed, but it's not really a big deal if they aren't. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/