From patchwork Fri Nov 18 14:12:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 9436567 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 726A760469 for ; Fri, 18 Nov 2016 14:16:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63E56298F1 for ; Fri, 18 Nov 2016 14:16:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58317298F3; Fri, 18 Nov 2016 14:16:17 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CBE86298F1 for ; Fri, 18 Nov 2016 14:16:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7jxg-0000Ff-G1; Fri, 18 Nov 2016 14:16:16 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7jxQ-000062-HG; Fri, 18 Nov 2016 14:16:01 +0000 Received: by mail-pg0-x244.google.com with SMTP id 3so20815341pgd.0; Fri, 18 Nov 2016 06:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xboC/aPqYYehDFryKn+ILKcn3pDkcsgt9jxab2Lvvu8=; b=XB3JBV/fsFtjxEJP9A9Dw8dEhlewM87m/CdzITPBOa5drwAUJ4hDkFpR/nRcTA1klN 3H0wth02RDhrEi6IL3lZnjJPf/httAMQl0Qi07aEh1HMQRw1Y+8aEiXhm89DQmDHFj1b dXEgUAfbPYOYx9lIIlc2x0IOtkQs+JyD6zTcUU9qzdhhLQLmb0TYpSjJqpmFgkfPzpoS X7nOtKuBz1MKmYTUdbDw0fG6HfqKfYALmt+FpocdFpVgMQnzYWo5Z3EWG+TGEVGGihrV A/s0Gj1XTkryeOBfelCfu0CvdY32fNsfXCIy8bfYTIR/1QUHQ4J+ZTSB8AF2t9s8+RFQ GFqg== 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:in-reply-to :references; bh=xboC/aPqYYehDFryKn+ILKcn3pDkcsgt9jxab2Lvvu8=; b=e47IfVkMBeUpDdyMyxFfPvAFSzHAro40z6Wf/V7d/1e9AE0JYSgWw4dNkmc2W24rX/ vAuQKQRuMqxBcayvWsTreeAa5n4z37l5AiD8i1GhBdJfaoKa9+azvBRYpZkMzI6xzo0Q oPtOzWOISQGdS+dnwNblQL6oMa5kifiieTcRf6NPvM3Do06sJRgy9hqNZakXv4HcYUn1 hYa9zD0X1Zgmmg/0FmsP37ALDI44w/SSa6ln5Vma7SvQ/dpe5Kn/pVPCRTkDHpD3qb2G dzoSw5MsEnNLXonCuTl5iZttlT2JlA+un+EmodEzNjFNeIQxQPMRl8X1fLPazWbaRHxd sA9A== X-Gm-Message-State: ABUngvcpOmYRGT9DU4vkAVMnHAw4+Fu35opJJLoQqYh6RJuGwPEJjBy6WakfPMM2VvZdzw== X-Received: by 10.99.226.83 with SMTP id y19mr19672632pgj.147.1479478539570; Fri, 18 Nov 2016 06:15:39 -0800 (PST) Received: from localhost (li411-102.members.linode.com. [106.187.91.102]) by smtp.gmail.com with ESMTPSA id 72sm15206416pfw.37.2016.11.18.06.15.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Nov 2016 06:15:39 -0800 (PST) From: Geliang Tang To: Linus Walleij , Matthias Brugger , Hongzhou Yang , Paul Gortmaker Subject: [PATCH] pinctrl: mediatek: use builtin_platform_driver Date: Fri, 18 Nov 2016 22:12:29 +0800 Message-Id: <70fcc58b7e9219a9fbe3695df927041b8234dd08.1479457060.git.geliangtang@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <7746cfe83ca3e96ccdf503669db3ace0e3081b7f.1479455552.git.geliangtang@gmail.com> References: <7746cfe83ca3e96ccdf503669db3ace0e3081b7f.1479455552.git.geliangtang@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161118_061600_669964_48850B95 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Geliang Tang , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang Acked-by: Hongzhou Yang --- drivers/pinctrl/mediatek/pinctrl-mt6397.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c index 6eccb85..afcede7 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6397.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6397.c @@ -64,8 +64,4 @@ static struct platform_driver mtk_pinctrl_driver = { }, }; -static int __init mtk_pinctrl_init(void) -{ - return platform_driver_register(&mtk_pinctrl_driver); -} -device_initcall(mtk_pinctrl_init); +builtin_platform_driver(mtk_pinctrl_driver);