Commit 45fd5e4a authored by Wolfram Sang's avatar Wolfram Sang

i2c: rcar: fix section mismatch

Give the driver struct a name according to the 'standard' to fix:

WARNING: vmlinux.o(.data+0x11798): Section mismatch in reference from the variable rcar_i2c_drv to the function .devinit.text:rcar_i2c_probe()
...
WARNING: vmlinux.o(.data+0x1179c): Section mismatch in reference from the variable rcar_i2c_drv to the function .devexit.text:rcar_i2c_remove()
Reported-by: default avatarSimon Horman <horms@verge.net.au>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
parent b53f4baf
...@@ -693,7 +693,7 @@ static int __devexit rcar_i2c_remove(struct platform_device *pdev) ...@@ -693,7 +693,7 @@ static int __devexit rcar_i2c_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct platform_driver rcar_i2c_drv = { static struct platform_driver rcar_i2c_driver = {
.driver = { .driver = {
.name = "i2c-rcar", .name = "i2c-rcar",
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -702,7 +702,7 @@ static struct platform_driver rcar_i2c_drv = { ...@@ -702,7 +702,7 @@ static struct platform_driver rcar_i2c_drv = {
.remove = __devexit_p(rcar_i2c_remove), .remove = __devexit_p(rcar_i2c_remove),
}; };
module_platform_driver(rcar_i2c_drv); module_platform_driver(rcar_i2c_driver);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Renesas R-Car I2C bus driver"); MODULE_DESCRIPTION("Renesas R-Car I2C bus driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment