diff mbox

soc-camera: Fix section mismatch warning

Message ID Pine.LNX.4.64.0905092139020.10748@axis700.grange (mailing list archive)
State RFC
Headers show

Commit Message

Guennadi Liakhovetski May 9, 2009, 7:45 p.m. UTC
modpost needs a __refdata marker in driver structs to ensure references to
.probe and .remove functions from .devinit.text and .devexit.text sections
respectively are valid. Add __refdata to soc_camera_pdrv platform driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---

> Applied, but it is not producing two section mismatches. Please fix it and send
> this patch alone, ASAP, since I intend to fold it together with your patch, at my -git.

Below. Also available as usual from

http://linuxtv.org/hg/~gliakhovetski/v4l-dvb

changeset

01/01: soc-camera: Fix section mismatch warning
http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=203422fec1b2

 drivers/media/video/soc_camera.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index fecd7e7..2014e9e 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -1203,7 +1203,7 @@  static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct platform_driver soc_camera_pdrv = {
+static struct platform_driver __refdata soc_camera_pdrv = {
 	.probe	= soc_camera_pdrv_probe,
 	.remove	= __exit_p(soc_camera_pdrv_remove),
 	.driver	= {