summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-10-06 15:17:16 +0200
committerSekhar Nori <nsekhar@ti.com>2010-11-18 14:08:37 +0100
commitd8c174cdeb6511aa307e6058468b68a9cc3990e4 (patch)
tree217b7b51b5da86a2dbe29eea88f3d6748034974f /drivers/spi
parentspi: davinci: enable and power-up SPI only when required (diff)
downloadlinux-d8c174cdeb6511aa307e6058468b68a9cc3990e4.tar.xz
linux-d8c174cdeb6511aa307e6058468b68a9cc3990e4.zip
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/davinci_spi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 1652bba955e2..2ec5fd2f2e7b 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),
};