diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-11-13 05:24:15 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-11-13 05:24:15 -0500 |
commit | 45fd5e4ad2052101b4ceda5fdf4b003c428ebdfc (patch) | |
tree | 7c9c7747a823c3eab1fade198226528df816b8b5 /drivers/i2c | |
parent | b53f4baf8b26303fc75ef3b00cf5e7398b58efd4 (diff) |
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: Simon Horman <horms@verge.net.au>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 2bce56de39e4..72a8071a5556 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
@@ -693,7 +693,7 @@ static int __devexit rcar_i2c_remove(struct platform_device *pdev) | |||
693 | return 0; | 693 | return 0; |
694 | } | 694 | } |
695 | 695 | ||
696 | static struct platform_driver rcar_i2c_drv = { | 696 | static struct platform_driver rcar_i2c_driver = { |
697 | .driver = { | 697 | .driver = { |
698 | .name = "i2c-rcar", | 698 | .name = "i2c-rcar", |
699 | .owner = THIS_MODULE, | 699 | .owner = THIS_MODULE, |
@@ -702,7 +702,7 @@ static struct platform_driver rcar_i2c_drv = { | |||
702 | .remove = __devexit_p(rcar_i2c_remove), | 702 | .remove = __devexit_p(rcar_i2c_remove), |
703 | }; | 703 | }; |
704 | 704 | ||
705 | module_platform_driver(rcar_i2c_drv); | 705 | module_platform_driver(rcar_i2c_driver); |
706 | 706 | ||
707 | MODULE_LICENSE("GPL"); | 707 | MODULE_LICENSE("GPL"); |
708 | MODULE_DESCRIPTION("Renesas R-Car I2C bus driver"); | 708 | MODULE_DESCRIPTION("Renesas R-Car I2C bus driver"); |