Browse Source

spi: davinci: setup the driver owner

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>
Brian Niebuhr 14 năm trước cách đây
mục cha
commit
d8c174cdeb
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      drivers/spi/davinci_spi.c

+ 4 - 1
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 = {
 static struct platform_driver davinci_spi_driver = {
-	.driver.name = "spi_davinci",
+	.driver = {
+		.name = "spi_davinci",
+		.owner = THIS_MODULE,
+	},
 	.remove = __exit_p(davinci_spi_remove),
 	.remove = __exit_p(davinci_spi_remove),
 };
 };