Content-Type: multipart/mixed; boundary="===============3478929410165876884==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] ODROID-XU4: char: exynos: fix platform_no_drv_owner.cocci warnings Date: Tue, 08 Sep 2020 11:39:51 +0200 Message-ID: List-Id: --===============3478929410165876884== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: be904257f8a9 ("ODROID-XU4: char: exynos: add /dev/gpiomem device for= rootless user GPIO access") CC: Brian Kim Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- I received some other warnings about this file, but with no details: >> drivers/char/exynos-gpiomem.c:231:15-18: ERROR: inst is NULL but dereferenced. -- >> drivers/char/exynos-gpiomem.c:231:9-13: ERROR: reference preceded by free on line 229 tree: https://github.com/tobetter/linux odroid-5.9.y head: 1118f1d60573bfbf1eb7ef079fa879a498ba4313 commit: be904257f8a9bd689b360fa98d3ffc85bdbeb560 [53/69] ODROID-XU4: char: = exynos: add /dev/gpiomem device for rootless user GPIO access :::::: branch date: 4 hours ago :::::: commit date: 4 hours ago exynos-gpiomem.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/char/exynos-gpiomem.c +++ b/drivers/char/exynos-gpiomem.c @@ -255,7 +255,6 @@ MODULE_DEVICE_TABLE(of, exynos_gpiomem_o static struct platform_driver exynos_gpiomem_driver =3D { .driver =3D { .name =3D DRIVER_NAME, - .owner =3D THIS_MODULE, .of_match_table =3D exynos_gpiomem_of_match, }, .probe =3D exynos_gpiomem_probe, --===============3478929410165876884==--