]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] media: st-rc: Remove .owner field for driver
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 22 Sep 2014 22:22:48 +0000 (19:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 20:03:58 +0000 (17:03 -0300)
There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/st_rc.c

index 03bbb096cb9b8103ee2c87373222eebaa4f56169..e309441a266d9c55acab29bb6b50168907a73fa2 100644 (file)
@@ -392,7 +392,6 @@ MODULE_DEVICE_TABLE(of, st_rc_match);
 static struct platform_driver st_rc_driver = {
        .driver = {
                .name = IR_ST_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(st_rc_match),
                .pm     = &st_rc_pm_ops,
        },