From patchwork Sun Aug 20 09:19:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9910985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 73ED0602A0 for ; Sun, 20 Aug 2017 09:19:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64E9B287D1 for ; Sun, 20 Aug 2017 09:19:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 581C8287D3; Sun, 20 Aug 2017 09:19:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8311F287D1 for ; Sun, 20 Aug 2017 09:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752482AbdHTJTl (ORCPT ); Sun, 20 Aug 2017 05:19:41 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:53034 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752740AbdHTJTk (ORCPT ); Sun, 20 Aug 2017 05:19:40 -0400 X-IronPort-AV: E=Sophos;i="5.41,402,1498514400"; d="scan'208";a="234852775" Received: from 85-171-60-79.rev.numericable.fr (HELO [192.168.0.15]) ([85.171.60.79]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2017 11:19:38 +0200 Date: Sun, 20 Aug 2017 11:19:38 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Takashi Iwai cc: alsa-devel@alsa-project.org, Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: [PATCH] input/keyboard: fix platform_no_drv_owner.cocci warnings Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button") Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- dc_ti_pwrbtn.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/input/keyboard/dc_ti_pwrbtn.c +++ b/drivers/input/keyboard/dc_ti_pwrbtn.c @@ -75,7 +75,6 @@ static int dc_ti_pwrbtn_probe(struct pla static struct platform_driver dc_ti_pwrbtn_driver = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, }, .probe = dc_ti_pwrbtn_probe, };