From patchwork Fri Sep 16 13:03:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9335753 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 959746077F for ; Fri, 16 Sep 2016 13:05:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 856A229F54 for ; Fri, 16 Sep 2016 13:05:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76A7229F8D; Fri, 16 Sep 2016 13:05:44 +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 05B6F29F54 for ; Fri, 16 Sep 2016 13:05:44 +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 1bksoQ-0001Sl-1L; Fri, 16 Sep 2016 13:04:14 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bksoB-0001I5-It for linux-arm-kernel@lists.infradead.org; Fri, 16 Sep 2016 13:04:03 +0000 Received: by mail-pa0-x242.google.com with SMTP id vz6so3483868pab.1 for ; Fri, 16 Sep 2016 06:03:38 -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=hmgylU6lKP8/Y/5wjpdgScBZofJf7c04Tpa8+VZhmoA=; b=g52cg77YsBC+JhHL+R98PzvIxFqlpbaUW4gG5ETvlzmeqvnuPm9apRFZy4tQZnY/MP Fr+tL7bNLaB5eCoGBCuAt6toENTE2L1gXC2WxfEqW+YS3epCTeH2FntZ34jwwAMAMf88 nes3bvnwquq+xdLnYobqpn1ufT8L+GKjC8/Dq2hpR4LAh2UKVfafE1QwguJHS0H9ZEn6 nAdJAVEhxF1NbyhsdBI4Ls0SDWDdM4Kt6wmKEqhW9lfBAn14XT0TE87XtomI+yHhgJkz q+CKq4Q2TSmF0rFOzWkTjTrkGHt/eyGykLEdj92uk/Vx9LvQQeT7Pxxk5Xuv3z5rQbuV SGJA== 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=hmgylU6lKP8/Y/5wjpdgScBZofJf7c04Tpa8+VZhmoA=; b=GI0MWnUDaABZFwjMm0D4fsiAeU9tXlsp8G0mneacY7D6JQxvcB9r+jt9wXLTEC1nlz qjEJiiYdW4GhRQJ/zRqaJGa1MLpvOB00CrCdxd6PbSxiNb0ZSYWckBFrNVBmueYCCP0U rtDeu3QJsX6hIzZ+1JzLjQUTU6DvSdBBTU0W9pDFXGxz8hiEGAGZJCd2r1ojvyraVdfB CPHTPuFmqYVn8iao+ljhbz9I3SjERzZdZISYjhxMFAHqamvUoyJoTbmScFD4BTh5hJgu rEFLOmykQ4jEaa7mnzS6N1rwLdyl210plIwoYubarK97qmSkY94xoIY5zvxIXiVHJ+9o eAhg== X-Gm-Message-State: AE9vXwOWDIhIuya4923hEwHo0BHWS2fkk1di6zx12t4pZ27ReZer2pF3E9zjNk8p37RCSQ== X-Received: by 10.66.43.82 with SMTP id u18mr23260886pal.28.1474031018506; Fri, 16 Sep 2016 06:03:38 -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 d26sm42767016pfe.37.2016.09.16.06.03.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Sep 2016 06:03:37 -0700 (PDT) From: Wei Yongjun To: Jun Nie , Michael Turquette , Stephen Boyd Subject: [PATCH -next] clk: zx296718: use builtin_platform_driver to simplify the code Date: Fri, 16 Sep 2016 13:03:31 +0000 Message-Id: <1474031011-6700-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-20160916_060359_704798_B8072C2F X-CRM114-Status: UNSURE ( 9.06 ) 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: 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/zte/clk-zx296718.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/zte/clk-zx296718.c b/drivers/clk/zte/clk-zx296718.c index 025e324..b4fe8dd 100644 --- a/drivers/clk/zte/clk-zx296718.c +++ b/drivers/clk/zte/clk-zx296718.c @@ -917,8 +917,4 @@ static struct platform_driver zx_clk_driver = { }, }; -static int __init zx_clkc_init(void) -{ - return platform_driver_register(&zx_clk_driver); -} -device_initcall(zx_clkc_init); +builtin_platform_driver(zx_clk_driver);