From patchwork Sat Sep 10 12:30:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9324955 X-Patchwork-Delegate: bhelgaas@google.com 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 BB4B26077F for ; Sat, 10 Sep 2016 12:30:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CEDD298E9 for ; Sat, 10 Sep 2016 12:30:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F506298F0; Sat, 10 Sep 2016 12:30:45 +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=-4.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 16B9F298E9 for ; Sat, 10 Sep 2016 12:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174AbcIJMan (ORCPT ); Sat, 10 Sep 2016 08:30:43 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35343 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbcIJMam (ORCPT ); Sat, 10 Sep 2016 08:30:42 -0400 Received: by mail-pf0-f195.google.com with SMTP id i75so464346pfa.2 for ; Sat, 10 Sep 2016 05:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=geJgFHMhlTObA+240UE2RVpe1HopnfGpHdbE3YyOrMA=; b=viwVCsQHIklL4WO3U0VKWeIIkx5ItLerKFKFdojN3PskTaCdsxc6XdCTFzbCz3KWA9 XJmaSpKf8ipLA9EfTudJSSo/66ew5uM6UlX1oHM+ERsJQbrCVKYrCjUaKE+OatcGKNtC TWhUkUzi+StPIPDzEhCldCmA+GR9wpwbDsNhgnNhWXC95aJAouLRBbXYdk65lBS4yluZ qg80Mf+rwr3d+6W/L54vGwb874UlF3dBI/uWGGIj/TndUEXjR/B+XLEqBsoPyUK3rXBa aOBEXokwGJco4x2CTfxpeIaJRw0IRgJML4ux6WETqtqYYj9hUVENh1OxYoKEZSMQ08iX Z4mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=geJgFHMhlTObA+240UE2RVpe1HopnfGpHdbE3YyOrMA=; b=binUBQhLY7KqGighur0spX7z5y2THwte4D8V2JIgqZRaor2tRUkttfxnEV9s6Syihh p9/bJD6PxDrjDRiTyh4yBQYdeuVz3CbJEfQ6msA89R8FmQa8DEtIb0qM/rNxWeAI3MON 1DWGXpVX7Fj4AqqJ8QqVEDY82/8PpVQ/loM3rKgyqjNDYAmiwHmyg0cu5gAkImA79FhH VAj+Y8JURGXrBg6n+mF6TmGDPxkjBg5fubaneWSet0O1L3jKEadL8hMX8VJ4su82BFV/ zN3d+GtGGao18fbdq+wI6loMIfTh5g4sMjAu/dAxQ4a/KPXUdw/Cap8Zd2c+H0jpiXaP mWLg== X-Gm-Message-State: AE9vXwO59zrjexZrXFiy7b0+mszrxk83iSYEEj0eP6v7ncSWqnzEZLXGiJXRf44CmuRxpw== X-Received: by 10.98.149.23 with SMTP id p23mr1862367pfd.150.1473510642016; Sat, 10 Sep 2016 05:30:42 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id s63sm12096799pfb.52.2016.09.10.05.30.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2016 05:30:40 -0700 (PDT) From: Wei Yongjun To: Pratyush Anand , Bjorn Helgaas Cc: Wei Yongjun , linux-pci@vger.kernel.org Subject: [PATCH -next] PCI: spear: Use builtin_platform_driver to simplify the code Date: Sat, 10 Sep 2016 12:30:34 +0000 Message-Id: <1473510634-23872-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun --- drivers/pci/host/pcie-spear13xx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 09aed85..1c957eb 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -364,8 +364,4 @@ static struct platform_driver spear13xx_pcie_driver = { }, }; -static int __init spear13xx_pcie_init(void) -{ - return platform_driver_register(&spear13xx_pcie_driver); -} -device_initcall(spear13xx_pcie_init); +builtin_platform_driver(spear13xx_pcie_driver);