From patchwork Sat Nov 10 05:48:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10676949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87B4D14DB for ; Sat, 10 Nov 2018 05:49:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 753A42E6C3 for ; Sat, 10 Nov 2018 05:49:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 655C42E6D5; Sat, 10 Nov 2018 05:49:58 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 05B942E6C3 for ; Sat, 10 Nov 2018 05:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbeKJPdK (ORCPT ); Sat, 10 Nov 2018 10:33:10 -0500 Received: from mga07.intel.com ([134.134.136.100]:4632 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbeKJPdK (ORCPT ); Sat, 10 Nov 2018 10:33:10 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2018 21:49:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,486,1534834800"; d="scan'208";a="248591879" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2018 21:49:19 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1gLM90-000E3K-D4; Sat, 10 Nov 2018 13:49:18 +0800 Date: Sat, 10 Nov 2018 13:48:46 +0800 From: kbuild test robot To: Al Cooper Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Al Cooper , Alan Stern , Alban Bedel , Alex Elder , Andrew Morton , Arnd Bergmann , Avi Fishman , bcm-kernel-feedback-list@broadcom.com, Bjorn Andersson , Chunfeng Yun , "David S. Miller" , devicetree@vger.kernel.org, Dmitry Osipenko , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Hans de Goede , James Hogan , Johan Hovold , Kees Cook , linux-usb@vger.kernel.org, Lu Baolu , Mark Rutland , Martin Blumenstingl , Mathias Nyman , Mathias Nyman , Mauro Carvalho Chehab , Rishabh Bhatnagar , Rob Herring , Roger Quadros Subject: [PATCH] usb: host: fix platform_no_drv_owner.cocci warnings Message-ID: <20181110054846.GA16550@lkp-hsx03> References: <1541772120-40394-6-git-send-email-alcooperx@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1541772120-40394-6-git-send-email-alcooperx@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot drivers/usb/host/ehci-brcm.c:258: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 Fixes: 51b4c79a49f1 ("usb: host: Add ability to build new Broadcom STB USB drivers") CC: Al Cooper Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Al-Cooper/Add-XHCI-EHCI-and-OHCI-support-for-Broadcom-STB-SoS-s/20181110-065441 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ehci-brcm.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/usb/host/ehci-brcm.c +++ b/drivers/usb/host/ehci-brcm.c @@ -255,7 +255,6 @@ static struct platform_driver ehci_brcm_ .remove = ehci_brcm_remove, .shutdown = usb_hcd_platform_shutdown, .driver = { - .owner = THIS_MODULE, .name = "ehci-brcm", .pm = &ehci_brcm_pm_ops, .of_match_table = brcm_ehci_of_match,