From patchwork Sat Sep 10 12:02:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9324951 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 B499360780 for ; Sat, 10 Sep 2016 12:10:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A33992971C for ; Sat, 10 Sep 2016 12:10:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 962C6297F3; Sat, 10 Sep 2016 12:10:29 +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 616762971C for ; Sat, 10 Sep 2016 12:10:29 +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 1bih0G-0004hv-Ua; Sat, 10 Sep 2016 12:03:24 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bih0A-0004fB-0j; Sat, 10 Sep 2016 12:03:19 +0000 Received: by mail-pf0-x243.google.com with SMTP id 128so5375796pfb.0; Sat, 10 Sep 2016 05:02:57 -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=Wu9LTPB0YRgBcVqEHTTblSXGvFSzzTfrXjCcblpqhRE=; b=bDp7vcMyrgS2O6IkDIMf5tj004egyU6e3YmjAvINwtsw3SgPPQMdzkXuRMtCcDgypg mH1GetZthTEM+jAK88P2uC1rYy0NHqjDrnU47qwyuw5/oNtvF/fwOArupoZh962eU5+v 6PU6u2S3I/aEdGcI4KPnuKQBP8lXh0JyODFZQ1twXNUZmmz3rTKRjIsk+xBBX/izCTdf LZNR/t90yFH/rkZJvo1GYFPdzottDlZfl3xL0+6DsbuXmTsS83dPRWMRqkMdWCfyCJYG 6TBERsXk01WVTRGr5wSNIl5vL6SitOBIqFENcI4L0rKNK99JgyiuOXEBQ36Yp9Sfhg1X UUxA== 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=Wu9LTPB0YRgBcVqEHTTblSXGvFSzzTfrXjCcblpqhRE=; b=GlOA4fxG3g/YP1WhHbBVOnRbW2kNWV2Vr1nbgHLP01nDQ2Tj7XnU2NrIW0v8OxDfHu m5A9VblVEzt+zYWTOVn23NGNVlgI4GPnqIsoELxDHuvE4n8GxlICrve+QtGprep3dDIW a603DMmYVVPwkv8wDu6iVsl9z24Ti6J2dz8VPEqU+9v6LDTzC3xVIQZcOjRUsyzYVMwn JCpCVwXVkNu0o171yQFbhyirybhBMqgXFBDfj+N/xbkfS9shaaF8fyoSDgyj/pGireka lwWcNcvMIE+Aww8szdBE1u6unhBEfTTIx02GRiziL197d0BUUzjSXsPhoI1eoQLP8cgy /Rfg== X-Gm-Message-State: AE9vXwM8JDJb5WVT4PghW3e9q9rAffsFg5qWDApmwhZFOwD5YU9pXfwewK+5AVibU93ILQ== X-Received: by 10.98.157.140 with SMTP id a12mr15441084pfk.75.1473508977140; Sat, 10 Sep 2016 05:02:57 -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 m65sm11895473pfg.79.2016.09.10.05.02.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2016 05:02:56 -0700 (PDT) From: Wei Yongjun To: Michael Turquette , sboyd@codeaurora.org, carlo@caione.org, khilman@baylibre.com, serveralex@gmail.com, paul.gortmaker@windriver.com Subject: [PATCH -next] meson: clk: Use builtin_platform_driver to simplify the code Date: Sat, 10 Sep 2016 12:02:49 +0000 Message-Id: <1473508969-2776-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-20160910_050318_138446_3E0D7EA0 X-CRM114-Status: UNSURE ( 8.23 ) 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 From: Wei Yongjun Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun --- drivers/clk/meson/meson8b.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index e1d4aa1..aaa3e39 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -673,8 +673,4 @@ static struct platform_driver meson8b_driver = { }, }; -static int __init meson8b_clkc_init(void) -{ - return platform_driver_register(&meson8b_driver); -} -device_initcall(meson8b_clkc_init); +builtin_platform_driver(meson8b_driver);