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: 9324943 X-Patchwork-Delegate: sboyd@codeaurora.org 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 297A060231 for ; Sat, 10 Sep 2016 12:03:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13AAC299CD for ; Sat, 10 Sep 2016 12:03:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04EBC299D1; Sat, 10 Sep 2016 12:03:00 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 7F69D299CD for ; Sat, 10 Sep 2016 12:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbcIJMC6 (ORCPT ); Sat, 10 Sep 2016 08:02:58 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34514 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbcIJMC5 (ORCPT ); Sat, 10 Sep 2016 08:02:57 -0400 Received: by mail-pf0-f193.google.com with SMTP id g202so5379568pfb.1 for ; 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=IiClKh6VUFbnEC5QD2bX0s1eg6aDlKd1U/8FuG3nwkQbwV+bxM7z0EOzHRuJn1gSAx X1px1bo+zEBq0+NEVw6WPJJCW3DaOSGdf7bBsUIZxflnJAbJB92k6ECslLL3HhYgion4 oIRgiNDWRozFw2GPodmhwiCbi8fNBMz55x/wCOM2m54QmwmTRcnw3wYTMW9LGbjnPlQ4 lWvnwdVXozCMQPtLpv2m+xuLzIFY9rJYIjJLSGOSFv1z3ZMRwP3MtgDqyUGOLGKTqDTD foqp8BeNPsRCEkjX0E5N7PRcrvmYRlYIlhHmfbGUG0VKJ2zDfYNIUyp5rr+2TQSkI6O1 3kBA== X-Gm-Message-State: AE9vXwMYfkZlJBcsrOsXalZaqiPaUhjsbh539eA/ScEgP+3ZKJTtNWe54DABu6g6YO1raw== 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 Cc: Wei Yongjun , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org 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 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@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/clk/meson/meson8b.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" 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/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);