summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-09 21:45:37 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-09 21:45:37 +0200
commit3a5029e47ebbbb4707dce75ad6beebe667224ba5 (patch)
tree83d22dcae0528bd86e2a9baf126090fd8aa0ee11
parentef9ce811383b9e45d06ed6728a8ef0491ba5e16c (diff)
downloadmediapointer-dvb-s2-3a5029e47ebbbb4707dce75ad6beebe667224ba5.tar.gz
mediapointer-dvb-s2-3a5029e47ebbbb4707dce75ad6beebe667224ba5.tar.bz2
soc-camera: Fix section mismatch warning
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> 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> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--linux/drivers/media/video/soc_camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/soc_camera.c b/linux/drivers/media/video/soc_camera.c
index f792ab2e5..822052b25 100644
--- a/linux/drivers/media/video/soc_camera.c
+++ b/linux/drivers/media/video/soc_camera.c
@@ -1204,7 +1204,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 = {