From: Brian Niebuhr <[email protected]>

Setup the owner member of the platform driver to THIS_MODULE
instead of leaving it NULL.

Signed-off-by: Brian Niebuhr <[email protected]>
Tested-By: Michael Williamson <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
---
 drivers/spi/davinci_spi.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 1652bba..2ec5fd2 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -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),
 };
 
-- 
1.7.3.2

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to