From patchwork Mon Apr 2 05:28:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 132644 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2205451ljb; Sun, 1 Apr 2018 22:28:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+huv88ByG1otmaGXFfm9zNJCVIHRwyk8hUNx8WU1FwNXYnq6qOrgy9r0isyO7ZJDQ7FgdL X-Received: by 2002:a17:902:ab88:: with SMTP id f8-v6mr8514293plr.34.1522646930731; Sun, 01 Apr 2018 22:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522646930; cv=none; d=google.com; s=arc-20160816; b=jMI/wNMa11s6lxKcpQrthQ+ldl5PJGFddWzCIn980DWdjvGhiTGW4oCwNGfqE3gv7e /At+qvtw++H/VpYG//Qt9YCcs9ssp8lwtzR4f3Z2J0NYaXuZ1fxEacK/9xGSyn5IxpgG sjjQjL1EuWYl6U9TolP5lrTTzKSSEdDAKagI+1W/ZiZUziaO6YjghhIMqBxpZAdLFZ1B jkfCA5PNNgsSS+f35R77tkVeWSWdhOiEpfpBJtTLcU9H53QShGjdOCDyHVRiepoRXu3z LHqf7dsi/q5Qm+0A+Qkn1jdSPacyI+kcSpkpWtnVnMyrMzMPLsPjp94vMmeWCjeYcfVD /Dnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lT/0AY7ie3VFHKKv1UEfjrg0PiD+e7Jc8vriODdAYv4=; b=K9xQUMW7+gvLw+85tbwFJz+irby9h8d+2SAcb0cgscr5zGD4iceewO0aP4kwkVtAJT 7y/bjypbZ5YJxctFXU8k9YzK6LQntFDCaHJfBTcSKc2IJj+0uq05YXPPbfei638f7RRm yxbB8eHO9/i8DmBUSA7uK9EDhJaspyD8nvRg7SdwDJcZcANpHYxNpJnw1HVfwY0NwOeE eTIulLR/xvtp7LxKk4uuOyCngMhJswwdUFuf/HODedxLzxkkXd8vftDFMDlqkAiD8F/f UJ6QJffdfm4NMBH4Xv+r4blWfksGah3v9EfmGy5ZWrEaDCq2tRzN+vFJ9rnSddJZGWq/ bfOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KjTKuSsm; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si9579180pll.332.2018.04.01.22.28.49; Sun, 01 Apr 2018 22:28:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KjTKuSsm; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752150AbeDBF2s (ORCPT + 11 others); Mon, 2 Apr 2018 01:28:48 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:39145 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbeDBF2q (ORCPT ); Mon, 2 Apr 2018 01:28:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id c78so8830534pfj.6 for ; Sun, 01 Apr 2018 22:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=lT/0AY7ie3VFHKKv1UEfjrg0PiD+e7Jc8vriODdAYv4=; b=KjTKuSsmzZVpNtK0f+z1YVg4P2pblE3sT30JDjzQRATjs6VU8CcZfd1j5Q5Y+ROzrB mn1Z0nzo74eiSs+9c8PJbHT6n9pvBVnCNkC6eejvrbFa101tjAJvGyVpYV/Hv0KtUkvC cZCOHLFD2f+j4xrCwmWR6GyepOISWjVLIEQS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lT/0AY7ie3VFHKKv1UEfjrg0PiD+e7Jc8vriODdAYv4=; b=P8iOOtvAbr2+xArJ438kIIU9AUJggFTSTbo6kqbLzkCtkcUy2o9sBOWMDtREkAdEcv DSFjf+5FgHU1mQqgvLZpgag82jQps8x/JJHT2TrCoLu9ky2iLpmvCXQXOxwysJad5Q0w yZOzdFRH+WE6+zHntRYkhPDA9FtsTpFQwyYPkcz7HVheA6jxZnMZ5+imI6f+uV188S0g bvBhhD1Gg4sk+DcNRtzKUVk7y3ZAx+MrG/S7vf7kMVe9Sj8fCXO+4RwnD2rsDavv7uuS G+YKcBpnefLiK+4Nt7BrG6UFZJlQbfsavalhPJEEkWBAz1BVIvFqJyjYy2sAFEL9J3iB hmtw== X-Gm-Message-State: AElRT7FHPpTyqmweMUhTy/R4W7iq4Ga8VR6eCGnj3G8z85pNwe0Yz5wZ win/KZehNrsVnO/RoJ9AiBGoeQ== X-Received: by 10.99.42.65 with SMTP id q62mr805161pgq.110.1522646925846; Sun, 01 Apr 2018 22:28:45 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id z14sm21991594pgv.26.2018.04.01.22.28.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 22:28:45 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , d-gerlach@ti.com Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , zumeng.chen@gmail.com Subject: [PATCH] cpufreq: ti-cpufreq: Use builtin_platform_driver() Date: Mon, 2 Apr 2018 10:58:38 +0530 Message-Id: <16098e29b7ed748ec0927e120e80545e6112d02c.1522646868.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This driver can not be built as a module and there is no need of the platform driver unregister part. Use builtin_platform_driver() instead of module_platform_driver(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/ti-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0.194.g9af6a3dea062 diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index a099b7bf74cd..6ba709b6f095 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -304,7 +304,7 @@ static struct platform_driver ti_cpufreq_driver = { .name = "ti-cpufreq", }, }; -module_platform_driver(ti_cpufreq_driver); +builtin_platform_driver(ti_cpufreq_driver); MODULE_DESCRIPTION("TI CPUFreq/OPP hw-supported driver"); MODULE_AUTHOR("Dave Gerlach ");