Remove useless get_driver()/put_driver() calls
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 24 Jan 2012 18:35:24 +0000 (13:35 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 00:00:35 +0000 (16:00 -0800)
commitf3ff9247088a0af0c192a28908dab76ff3d8871f
tree4ff2c822bcf82213d14b2195d4f00fe470876b1d
parent9f30ea950edfaefa51221dd26a065b3442599778
Remove useless get_driver()/put_driver() calls

As part of the removal of get_driver()/put_driver(), this patch
(as1512) gets rid of various useless and unnecessary calls in several
drivers.  In some cases it may be desirable to pin the driver by
calling try_module_get(), but that can be done later.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: "David S. Miller" <davem@davemloft.net>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Michael Buesch <m@bues.ch>
CC: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/phy/phy_device.c
drivers/pci/xen-pcifront.c
drivers/ssb/main.c
lib/dma-debug.c