[S390] cio: Set driver->owner on css, ccw and ccwgroup busses.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Sat, 26 Jan 2008 13:10:47 +0000 (14:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 26 Jan 2008 13:11:02 +0000 (14:11 +0100)
Set the owner field in the embedded struct device_driver to the
value provided in the {css,ccw,ccwgroup}_driver.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/ccwgroup.c
drivers/s390/cio/css.c
drivers/s390/cio/css.h
drivers/s390/cio/device.c

index b9997fb4883cd05be78302f1b263f797c18de8c3..dc1c5f4dd2563003ee04d16f406ef7819f495fbb 100644 (file)
@@ -408,6 +408,7 @@ int ccwgroup_driver_register(struct ccwgroup_driver *cdriver)
        /* register our new driver with the core */
        cdriver->driver.bus = &ccwgroup_bus_type;
        cdriver->driver.name = cdriver->name;
+       cdriver->driver.owner = cdriver->owner;
 
        return driver_register(&cdriver->driver);
 }
index 4d98a0fddedf46cca769a244e5429fadbe418cc2..69d56c7284d1a8f5c2211b37a548f70ba16eaa0a 100644 (file)
@@ -862,6 +862,7 @@ int css_driver_register(struct css_driver *cdrv)
 {
        cdrv->drv.name = cdrv->name;
        cdrv->drv.bus = &css_bus_type;
+       cdrv->drv.owner = cdrv->owner;
        return driver_register(&cdrv->drv);
 }
 EXPORT_SYMBOL_GPL(css_driver_register);
index ee65761e82540193bc8a3ed72964146d943af820..40598b8ee27dca342459263e33abd6f1990d47c4 100644 (file)
@@ -65,6 +65,7 @@ struct pgid {
  */
 struct subchannel;
 struct css_driver {
+       struct module *owner;
        unsigned int subchannel_type;
        struct device_driver drv;
        void (*irq)(struct subchannel *);
index 933f763e9586143782f4741010d283407861f851..f80d7f5418d3e4dc62f07eb721b9952763334fca 100644 (file)
@@ -125,6 +125,7 @@ static void io_subchannel_ioterm(struct subchannel *);
 static void io_subchannel_shutdown(struct subchannel *);
 
 static struct css_driver io_subchannel_driver = {
+       .owner = THIS_MODULE,
        .subchannel_type = SUBCHANNEL_TYPE_IO,
        .name = "io_subchannel",
        .irq = io_subchannel_irq,
@@ -1476,6 +1477,7 @@ int ccw_driver_register(struct ccw_driver *cdriver)
 
        drv->bus = &ccw_bus_type;
        drv->name = cdriver->name;
+       drv->owner = cdriver->owner;
 
        return driver_register(drv);
 }