diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2011-03-23 05:16:02 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-03-23 05:15:59 -0400 |
commit | 3bda058b0c39fc72188116d2fd71af08dd0fe5b0 (patch) | |
tree | 94d2cb60f495ebb6b14b40ad9e23feb9ba001ce9 /drivers/s390/cio | |
parent | 9a26513eb67ec4b2cb1744834076afad21b68aac (diff) |
[S390] ccw_driver: remove duplicate members
Remove the owner and name members of struct
ccw_driver and convert all drivers to store
this data in the embedded struct device_driver.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/device.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index e50b12163afe..334459eb23c8 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -547,7 +547,7 @@ static ssize_t online_store (struct device *dev, struct device_attribute *attr, | |||
547 | if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0) | 547 | if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0) |
548 | return -EAGAIN; | 548 | return -EAGAIN; |
549 | 549 | ||
550 | if (cdev->drv && !try_module_get(cdev->drv->owner)) { | 550 | if (cdev->drv && !try_module_get(cdev->drv->driver.owner)) { |
551 | atomic_set(&cdev->private->onoff, 0); | 551 | atomic_set(&cdev->private->onoff, 0); |
552 | return -EINVAL; | 552 | return -EINVAL; |
553 | } | 553 | } |
@@ -573,7 +573,7 @@ static ssize_t online_store (struct device *dev, struct device_attribute *attr, | |||
573 | } | 573 | } |
574 | out: | 574 | out: |
575 | if (cdev->drv) | 575 | if (cdev->drv) |
576 | module_put(cdev->drv->owner); | 576 | module_put(cdev->drv->driver.owner); |
577 | atomic_set(&cdev->private->onoff, 0); | 577 | atomic_set(&cdev->private->onoff, 0); |
578 | return (ret < 0) ? ret : count; | 578 | return (ret < 0) ? ret : count; |
579 | } | 579 | } |
@@ -1993,8 +1993,6 @@ int ccw_driver_register(struct ccw_driver *cdriver) | |||
1993 | struct device_driver *drv = &cdriver->driver; | 1993 | struct device_driver *drv = &cdriver->driver; |
1994 | 1994 | ||
1995 | drv->bus = &ccw_bus_type; | 1995 | drv->bus = &ccw_bus_type; |
1996 | drv->name = cdriver->name; | ||
1997 | drv->owner = cdriver->owner; | ||
1998 | 1996 | ||
1999 | return driver_register(drv); | 1997 | return driver_register(drv); |
2000 | } | 1998 | } |