ASoC: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Wed, 9 Nov 2016 16:58:40 +0000 (00:58 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 10 Nov 2016 16:13:57 +0000 (16:13 +0000)
sound/soc/codecs/cs42l42.c:1972:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: James Schulman <james.schulman@cirrus.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c

index f3c10f5d68c8d3a8f5be82a8ac85d2344c84d320..55e4520cdcaf923f6c2b8d0f00027157aafb57a5 100644 (file)
@@ -1969,7 +1969,6 @@ MODULE_DEVICE_TABLE(i2c, cs42l42_id);
 static struct i2c_driver cs42l42_i2c_driver = {
        .driver = {
                .name = "cs42l42",
-               .owner = THIS_MODULE,
                .pm = &cs42l42_runtime_pm,
                .of_match_table = cs42l42_of_match,
                },