diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-01-10 19:35:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-11 10:03:24 -0500 |
commit | 3151d14aa6e983aa36d51a80d0477859f9ba12af (patch) | |
tree | 93ed3b87126f10b5f42c28be054f80c157568be5 /drivers/media/platform | |
parent | 978ae2247fac3b330ecd1095823001d2c08c7efd (diff) |
[media] media: remove __dev* annotations
Hi Mauro,
After merging the v4l-dvb tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/media/platform/sh_veu.c:1146:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_veu_probe'
drivers/media/platform/sh_veu.c:1228:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_veu_remove'
drivers/media/platform/sh_veu.c:1244:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration]
drivers/media/platform/sh_veu.c:1244:25: error: 'sh_veu_remove' undeclared here (not in a function)
drivers/media/platform/sh_veu.c: In function 'sh_veu_init':
drivers/media/platform/sh_veu.c:1253:45: error: 'sh_veu_probe' undeclared (first use in this function)
drivers/media/platform/sh_veu.c:1253:45: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/platform/sh_veu.c: At top level:
drivers/media/platform/sh_veu.c:1095:20: warning: 'sh_veu_bh' defined but not used [-Wunused-function]
drivers/media/platform/sh_veu.c:1109:20: warning: 'sh_veu_isr' defined but not used [-Wunused-function]
drivers/media/platform/sh_veu.c: In function 'sh_veu_init':
drivers/media/platform/sh_veu.c:1254:1: warning: control reaches end of non-void function [-Wreturn-type]
Caused by commit 05efa71bdc0e ("[media] media: add a VEU MEM2MEM format
conversion and scaling driver") interacting with commit 54b956b90360
("Remove __dev* markings from init.h") from the driver-core.current tree.
I have applied the following merge fix patch which could be applied
directly to the v4l-dvb tree (please):
CONFIG_HOTPLUG is always true now and the __dev* macros have meen removed.
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/sh_veu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index a0186768479d..cb54c69d5748 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c | |||
@@ -1143,7 +1143,7 @@ static irqreturn_t sh_veu_isr(int irq, void *dev_id) | |||
1143 | return IRQ_HANDLED; | 1143 | return IRQ_HANDLED; |
1144 | } | 1144 | } |
1145 | 1145 | ||
1146 | static int __devinit sh_veu_probe(struct platform_device *pdev) | 1146 | static int sh_veu_probe(struct platform_device *pdev) |
1147 | { | 1147 | { |
1148 | struct sh_veu_dev *veu; | 1148 | struct sh_veu_dev *veu; |
1149 | struct resource *reg_res; | 1149 | struct resource *reg_res; |
@@ -1225,7 +1225,7 @@ einitctx: | |||
1225 | return ret; | 1225 | return ret; |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | static int __devexit sh_veu_remove(struct platform_device *pdev) | 1228 | static int sh_veu_remove(struct platform_device *pdev) |
1229 | { | 1229 | { |
1230 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); | 1230 | struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); |
1231 | struct sh_veu_dev *veu = container_of(v4l2_dev, | 1231 | struct sh_veu_dev *veu = container_of(v4l2_dev, |
@@ -1241,7 +1241,7 @@ static int __devexit sh_veu_remove(struct platform_device *pdev) | |||
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | static struct platform_driver __refdata sh_veu_pdrv = { | 1243 | static struct platform_driver __refdata sh_veu_pdrv = { |
1244 | .remove = __devexit_p(sh_veu_remove), | 1244 | .remove = sh_veu_remove, |
1245 | .driver = { | 1245 | .driver = { |
1246 | .name = "sh_veu", | 1246 | .name = "sh_veu", |
1247 | .owner = THIS_MODULE, | 1247 | .owner = THIS_MODULE, |