]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: davinci: setup the driver owner
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Wed, 6 Oct 2010 13:17:16 +0000 (18:47 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:37 +0000 (18:38 +0530)
Setup the owner member of the platform driver to THIS_MODULE
instead of leaving it NULL.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c

index 1652bba955e23eb1723cd5db4311f16b8fd6bed8..2ec5fd2f2e7ba3284931f2fc98e418c26ca7fe1c 100644 (file)
@@ -1001,7 +1001,10 @@ static int __exit davinci_spi_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver davinci_spi_driver = {
-       .driver.name = "spi_davinci",
+       .driver = {
+               .name = "spi_davinci",
+               .owner = THIS_MODULE,
+       },
        .remove = __exit_p(davinci_spi_remove),
 };