Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652666

[PATCH] Input: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] Input: fix platform_no_drv_owner.cocci warnings
Date 2017-05-29 19:20 +0200
Message-ID <tMwuK-33r-7@gated-at.bofh.it> (permalink)
References <tMwuK-33r-9@gated-at.bofh.it> <tMu9z-1fm-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/input/touchscreen/cyttsp5.c:1162: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: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 cyttsp5.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/input/touchscreen/cyttsp5.c
+++ b/drivers/input/touchscreen/cyttsp5.c
@@ -1159,7 +1159,6 @@ static int cyttsp5_i2c_remove(struct i2c
 static struct i2c_driver cyttsp5_i2c_driver = {
 	.driver = {
 		.name = CYTTSP5_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = cyttsp5_of_match,
 	},
 	.probe = cyttsp5_i2c_probe,

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] Input: Add driver for Cypress Generation 5 touchscreen Mylène Josserand          <mylene.josserand@free-electrons.com> - 2017-05-29 16:50 +0200
  [PATCH] Input: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2017-05-29 19:20 +0200
  Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen kbuild test robot <lkp@intel.com> - 2017-05-29 19:20 +0200
  Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-05-30 10:10 +0200
    Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Mylene Josserand <mylene.josserand@free-electrons.com> - 2017-06-06 10:10 +0200
      Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-06 14:10 +0200
        Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Mylene Josserand <mylene.josserand@free-electrons.com> - 2017-06-06 16:40 +0200
          Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-07 11:20 +0200
  Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 10:20 +0200
  Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 10:50 +0200
    Re: [PATCH 1/2] Input: Add driver for Cypress Generation 5  touchscreen Mylene Josserand <mylene.josserand@free-electrons.com> - 2017-06-06 15:30 +0200

csiph-web