From patchwork Wed Nov 23 14:42:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 9443535 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 5243A6075F for ; Wed, 23 Nov 2016 14:43:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46457265B9 for ; Wed, 23 Nov 2016 14:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AD4026B41; Wed, 23 Nov 2016 14:43:58 +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 DC374265B9 for ; Wed, 23 Nov 2016 14:43:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936461AbcKWOnN (ORCPT ); Wed, 23 Nov 2016 09:43:13 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36300 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936122AbcKWOnL (ORCPT ); Wed, 23 Nov 2016 09:43:11 -0500 Received: by mail-pg0-f67.google.com with SMTP id x23so1238991pgx.3; Wed, 23 Nov 2016 06:43:11 -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; bh=JhlGVTkiUXOQkGj4ivjJCmZZodMRlJOm6474gasYuEA=; b=GTWwI7bXPIXmohRdK1pMrOsX1KUrGTayFyI7W94J2AFGR+1TJCgfX8P0Eo7D+o39aS TmcTIFq0sIXFopg1zDaGxatW3EZXeGStgQaRsQShcwUrb9/MTgXXkfVmiEaSuK2zgcI2 S0/9oC3HWe2EsLI5Z9n5QzEoGLMk7msVxgdkkXqHVuDzE8HZ0yGgl7+L5YTBrZPnww9c 7VFheczpV0j3XvtvxlUUNxhYTADIi/lNoT2lRq4JghMD/HTh91VaLCMa7SJ4bAZzWaNw V9alz46W+a5c0jwmz73HjHxggIgi6jHS8okV0PgSwxM0bWuThBIgqZ6/KdLFTXSMNNkz TFNQ== 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; bh=JhlGVTkiUXOQkGj4ivjJCmZZodMRlJOm6474gasYuEA=; b=YDngN1wBinqgMMFA52bfwnUYhcn6yrqli3kyZ/ac8PwBSCmlnbHy2lG4QzpZ/eA/7H IrsTEH1wi0klMzpee5QQP69eqrxCnuKxh+/1WTZWCym44FdrbT92Rde6nFeEPfFau8Vr xZvXAcSZOhhSuLkQChnpTWkDwoONaunjZ4ZfmkWKN1RCz681OI2XSd8oh4sQH3OjqRYY 8Kvzif1jrouKhCnFSKRnCdmJGeh7WjjmTKhshQSTVdRI6k/Q5PgywqENLyw0tydNtraJ BVsNJEH7qrAZm1zeWUFc+foeXL/IRLZeZj+nGTA9m/VxND4+kgCEaXPZtatQ10uk1REn hZIA== X-Gm-Message-State: AKaTC035NihQhifCEpF9IZaO9FcyxDVKdIeiqyYV9aX3TXoi4I30Cy7B6D/LMucHvX650A== X-Received: by 10.84.216.80 with SMTP id f16mr7240182plj.91.1479912186232; Wed, 23 Nov 2016 06:43:06 -0800 (PST) Received: from localhost (li411-102.members.linode.com. [106.187.91.102]) by smtp.gmail.com with ESMTPSA id t184sm35495296pgt.36.2016.11.23.06.43.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Nov 2016 06:43:05 -0800 (PST) From: Geliang Tang To: "Rafael J. Wysocki" , Viresh Kumar Cc: Geliang Tang , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: dbx500: use builtin_platform_driver Date: Wed, 23 Nov 2016 22:42:52 +0800 Message-Id: <3e21f3c9748b18f97d3b7e2e534b31a64601177c.1479912098.git.geliangtang@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang Acked-by: Viresh Kumar --- drivers/cpufreq/dbx500-cpufreq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 5c3ec1d..d257a75 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -73,11 +73,7 @@ static struct platform_driver dbx500_cpufreq_plat_driver = { .probe = dbx500_cpufreq_probe, }; -static int __init dbx500_cpufreq_register(void) -{ - return platform_driver_register(&dbx500_cpufreq_plat_driver); -} -device_initcall(dbx500_cpufreq_register); +builtin_platform_driver(dbx500_cpufreq_plat_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("cpufreq driver for DBX500");