提交 d8c174cd 编写于 作者: B Brian Niebuhr 提交者: Sekhar Nori

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: NBrian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: NMichael Williamson <michael.williamson@criticallink.com>
Signed-off-by: NSekhar Nori <nsekhar@ti.com>
上级 3f27b57c
......@@ -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),
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册