From patchwork Mon Aug 8 13:55:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9268451 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 1F641607D6 for ; Mon, 8 Aug 2016 13:57:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10BE6283F8 for ; Mon, 8 Aug 2016 13:57:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05534283FB; Mon, 8 Aug 2016 13:57:24 +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 AD3C9283F8 for ; Mon, 8 Aug 2016 13:57:23 +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 1bWl22-0003QP-EC; Mon, 08 Aug 2016 13:55:54 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWl1z-0003ME-BW; Mon, 08 Aug 2016 13:55:51 +0000 Received: by mail-pf0-x244.google.com with SMTP id h186so25017113pfg.2; Mon, 08 Aug 2016 06:55:30 -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=8V+6raUZ3YCCv8dHbF6XzT6nPL02J7lq5wssRiMuWN8=; b=CxLlQD414UbJWFqQ1TBKo5IZWUZYN9jw/GgMW/LcR+uXSGW/jziI082XgBjltt372E Z0Gtxc1owvplkTg+tn87PKdy2kMoWwtMjLU3IUJhGkjqpiykec45I1mQC8OwtZok1/95 nqYVfTmAaHbNkVdjiPj2cOVFMvJBqyi+fEjFjl8ZSs0MJ6GxTBVw5OuSQ9z1N5u4ipN7 hc764zjqHahvYaibEhgU/4U47oltNpZfoHLh40AZ9aztqLmHH2n9V/zk3nynbDI40EAU 6tu4Ltvt73/11J1/5MIAOgX6De2RLGkcwoemiWPIKyV8aHCkKnhILZhyW/RER0J/5wij ksvA== 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=8V+6raUZ3YCCv8dHbF6XzT6nPL02J7lq5wssRiMuWN8=; b=hne1fOrSbF96wP3xgaekYRp40A78ybfy4VP61EC5oM2AxE3lGWnRlXnI9roVa3cy8m wD8PFLse6ML0BZSFVZm6Qkx38Fj4b3qcI7ToaELzaggKm+2nNSfzjfSYdMlog5OY+TX+ HIkXfJdJ0+IjHh2o4gfkFlfQi22Y6mmbHy8SOsJZDTYXlullzN1evvn4r/F1dAHGIYj2 7vLVnVaCks2AZlJpiPnID/eHpL3BuS1RQd4dySOdVszAPHJwH0Xn3PYyc6Ytjan901cH HiiMrOKUNpFhxCTQZS0M11gR2BWdBAFy4N54cPdv2KtT2syLgDqAZASKZ/UXDQwfxNrv Er+g== X-Gm-Message-State: AEkoouuI5tAudfRD2HSAWcMwFgZQutyEHLjdJ0xPZI1i7oHYDerSMg5QtgrfHnJlac6odw== X-Received: by 10.98.11.133 with SMTP id 5mr160436585pfl.160.1470664530526; Mon, 08 Aug 2016 06:55:30 -0700 (PDT) Received: from bogon.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 75sm48499815pfw.92.2016.08.08.06.55.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 06:55:30 -0700 (PDT) From: Wei Yongjun To: Michael Turquette , Stephen Boyd , Carlo Caione , Kevin Hilman , Paul Gortmaker Subject: [PATCH -next] clk: gxbb: use builtin_platform_driver to simplify the code Date: Mon, 8 Aug 2016 13:55:20 +0000 Message-Id: <1470664520-9604-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160808_065551_502447_B8B895D7 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, Wei Yongjun , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun --- drivers/clk/meson/gxbb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 8e36d22..b736277 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -946,8 +946,4 @@ static struct platform_driver gxbb_driver = { }, }; -static int __init gxbb_clkc_init(void) -{ - return platform_driver_register(&gxbb_driver); -} -device_initcall(gxbb_clkc_init); +builtin_platform_driver(gxbb_driver);