lkml.org 
[lkml]   [2021]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] SoC: codecs: fix platform_no_drv_owner.cocci warnings
    Date
    ./sound/soc/codecs/lpass-rx-macro.c:3588:3-8: No need to set .owner here. 
    The core will do it.

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

    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    ---
    sound/soc/codecs/lpass-rx-macro.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c
    index c9c21d22..5b9d4e9 100644
    --- a/sound/soc/codecs/lpass-rx-macro.c
    +++ b/sound/soc/codecs/lpass-rx-macro.c
    @@ -3585,7 +3585,6 @@ static int rx_macro_remove(struct platform_device *pdev)
    static struct platform_driver rx_macro_driver = {
    .driver = {
    .name = "rx_macro",
    - .owner = THIS_MODULE,
    .of_match_table = rx_macro_dt_match,
    .suppress_bind_attrs = true,
    },
    --
    1.8.3.1
    \
     
     \ /
      Last update: 2021-03-03 17:00    [W:5.077 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site