aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-01-24 13:35:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-24 19:00:35 -0500
commit9f30ea950edfaefa51221dd26a065b3442599778 (patch)
tree32c4321c5dfbaa946c485983dcbdcb82fdaea0d5 /drivers/s390/cio/device.c
parentcef9bc56e1e944afd11f96de569657117a138c6d (diff)
cio: remove {get,put}_driver
Remove useless {get,put}_driver - the caller of the functions has to ensure valid driver pointers. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r--drivers/s390/cio/device.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 47269858ecb6..02d015259461 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -1676,15 +1676,9 @@ struct ccw_device *get_ccwdev_by_busid(struct ccw_driver *cdrv,
1676 const char *bus_id) 1676 const char *bus_id)
1677{ 1677{
1678 struct device *dev; 1678 struct device *dev;
1679 struct device_driver *drv;
1680 1679
1681 drv = get_driver(&cdrv->driver); 1680 dev = driver_find_device(&cdrv->driver, NULL, (void *)bus_id,
1682 if (!drv)
1683 return NULL;
1684
1685 dev = driver_find_device(drv, NULL, (void *)bus_id,
1686 __ccwdev_check_busid); 1681 __ccwdev_check_busid);
1687 put_driver(drv);
1688 1682
1689 return dev ? to_ccwdev(dev) : NULL; 1683 return dev ? to_ccwdev(dev) : NULL;
1690} 1684}