Re: [patch 1/1] PCI: automatically set device_driver.owner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 27, 2005 at 04:17:44PM -0700, Stephen Hemminger wrote:
> On Thu, 27 Oct 2005 23:12:54 +0200
> Laurent riffard <[email protected]> wrote:
> 
> > A nice feature of sysfs is that it can create the symlink from the
> > driver to the module that is contained in it.
> > 
> > It requires that the device_driver.owner is set, what is not the
> > case for many PCI drivers.
> > 
> > This patch allows pci_register_driver to set automatically the
> > device_driver.owner for any PCI driver.
> > 
> > Credits to Al Viro who suggested the method.
> > 
> > Signed-off-by: Laurent Riffard <[email protected]>
> > --
> 
> Okay, but a little too much macro trickery for my taste.

Yeah, pci_register_driver() should be a inline function, to make the
compiler warnings a bit easier to figure out.

Other than that, do you have any suggestions on how to not be so
"tricky" and yet, not have to touch every pci driver in the kernel tree?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux