ARM: sa1111: add .owner initializer to sa1111 driver structures
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jan 2012 11:19:48 +0000 (11:19 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:34:49 +0000 (15:34 +0000)
Add a .owner initializer to the sa1111 driver structures to allow
allow the modules to be associated with their driver structures.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/input/serio/sa1111ps2.c
drivers/usb/host/ohci-sa1111.c

index 44fc8b4bcd8157632b5e4bab9b8851dcac9e6523..40ec545fbd4095721f6e81eefd8cbee6d441e7f4 100644 (file)
@@ -330,6 +330,7 @@ static int __devexit ps2_remove(struct sa1111_dev *dev)
 static struct sa1111_driver ps2_driver = {
        .drv = {
                .name   = "sa1111-ps2",
+               .owner  = THIS_MODULE,
        },
        .devid          = SA1111_DEVID_PS2,
        .probe          = ps2_probe,
index 4bde4f9821baf99eeae6cf49fe1690278c4b13d1..7d2aa62ea613b2beb4e54d41ebf94eeb0b8f66e9 100644 (file)
@@ -262,6 +262,7 @@ static int ohci_hcd_sa1111_drv_remove(struct sa1111_dev *dev)
 static struct sa1111_driver ohci_hcd_sa1111_driver = {
        .drv = {
                .name   = "sa1111-ohci",
+               .owner  = THIS_MODULE,
        },
        .devid          = SA1111_DEVID_USB,
        .probe          = ohci_hcd_sa1111_drv_probe,