From patchwork Mon Jan 4 17:58:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 59144 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp5503228lbb; Mon, 4 Jan 2016 09:59:14 -0800 (PST) X-Received: by 10.66.102.97 with SMTP id fn1mr129512523pab.131.1451930354491; Mon, 04 Jan 2016 09:59:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r28si44744601pfi.37.2016.01.04.09.59.14; Mon, 04 Jan 2016 09:59:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbcADR7E (ORCPT + 6 others); Mon, 4 Jan 2016 12:59:04 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36167 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbcADR6h (ORCPT ); Mon, 4 Jan 2016 12:58:37 -0500 Received: by mail-pa0-f47.google.com with SMTP id yy13so108079763pab.3 for ; Mon, 04 Jan 2016 09:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ChLbwFW6FvajVaYgCLDRySag64Of7i8LTspIlF6putA=; b=GLE0UuTfP1i+5FL59HMey7I/n5WtsiUzlt5rgnYlVVEzezJGffMWiq6pl4eod7MeG8 reghi3u4rYVEaHa6icAfzM2532uUF+GoTdMMCTCW//thlFX+NDoMGwfYMFCu1IMTJVzC xhQ1mFygvmnGtj6ms7HS3hFtbE5KDVPaYTS9A= 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=ChLbwFW6FvajVaYgCLDRySag64Of7i8LTspIlF6putA=; b=IQXNLAlnorbezwAmBOzDjz90gf2eCLuRFWN408zJry7qvxcfhbuRmjiDh38vgBcVQF dMOg6KQyz8oTLTmARSCmVlYrJ7Cgq1DKsJ7QviN0ULPDTuOARUUB2BQK9ln2ckL3EQat D/VHiK9q9iUbIKafGHVFHgTQi5dbqEQ+5f6b1Ba1LqxKhrP/3P9XFfAQYZHrdOVUjscI XAivqk1SFNkbo4/I5NUvOwidZoyR2iFFQjApzBIMobnOsRTWJspM6/PWwHtx6RlykNEW 9MPujiUKzOjNm7ik9M9T5vGM6pPpNtwbehDd0u0YO2g8A1HyrzDq7RgXYDvoq06Lovc6 bIdA== X-Gm-Message-State: ALoCoQlT+CuAk5t6k/zGTrB/eht5WtxAMby4MoBIwtx7sFLR0UX1RTiRRS2Ibvcy+kZ1a9HPwgbs1AIbMj7yl3PpI0bIdQsX3w== X-Received: by 10.66.117.199 with SMTP id kg7mr128744742pab.105.1451930317219; Mon, 04 Jan 2016 09:58:37 -0800 (PST) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id kk5sm111316925pab.16.2016.01.04.09.58.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jan 2016 09:58:35 -0800 (PST) From: Lina Iyer To: andy.gross@linaro.org, sboyd@codeaurora.org Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Lina Iyer , Paul Gortmaker Subject: [PATCH v2] drivers: qcom: spm: avoid module usage in non-modular SPM driver Date: Mon, 4 Jan 2016 10:58:28 -0700 Message-Id: <1451930308-8087-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SPM driver provides cpuidle support on some QC SoC's. The functionality is non-modular and there is no need for module support. Convert module platform init to builtin platform driver init. The driver functionality is not affected by this change. Cc: Paul Gortmaker Signed-off-by: Lina Iyer --- drivers/soc/qcom/spm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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/soc/qcom/spm.c b/drivers/soc/qcom/spm.c index b04b05a..8ee5192 100644 --- a/drivers/soc/qcom/spm.c +++ b/drivers/soc/qcom/spm.c @@ -2,6 +2,8 @@ * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2014,2015, Linaro Ltd. * + * SAW power controller driver + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. @@ -12,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -378,8 +379,5 @@ static struct platform_driver spm_driver = { .of_match_table = spm_match_table, }, }; -module_platform_driver(spm_driver); -MODULE_LICENSE("GPL v2"); -MODULE_DESCRIPTION("SAW power controller driver"); -MODULE_ALIAS("platform:saw"); +builtin_platform_driver(spm_driver);