From patchwork Wed Sep 17 00:59:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 37499 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8711C2057E for ; Wed, 17 Sep 2014 01:00:13 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf142670wib.10 for ; Tue, 16 Sep 2014 18:00:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=qZuvhRCNzcnGC6yS6XqSOYPc2pu16mmJYIFOQCM+kFY=; b=l+RKCC57gFFUh+EgE/nzQbrFLsvWVNB2nUUbCmDOwFEcDMQmTM/KWKlI6GccrOwBiU x1oMtV/lQ5wt+LKmCyruRB1sfE8uPy2rU60SsiCY5Jk1dRiviYHSdujnJymF5xvIY8hk Tlpm1M/uQGIrze7qI6ACppQ6i2X/4R+fLvcLT8Li8lPZ8hFalgBM3pAFTg2pJbHxEQr4 r/FAMQeTDhPFrNvdJwPZWtW2VjCb9PnwAfWYK2Up35waDzbw4tK5DG9yNWwNkilERUBM Qv/tHaF9Jam3ZT802GbV9ZYtDjuLrqT8/Mg0VzEBNLvH0WTfKJVI6KU2jnHW4SyLQ7ul Rf7Q== X-Gm-Message-State: ALoCoQlo7zSHO98nyb2fR3yjueLEvW9vtzztClfnksgf1kqZ1UbjT9PNIXuvJtFhI8qqG0kLp0U9 X-Received: by 10.180.11.71 with SMTP id o7mr7272667wib.0.1410915612663; Tue, 16 Sep 2014 18:00:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.141 with SMTP id j13ls62687laa.5.gmail; Tue, 16 Sep 2014 18:00:12 -0700 (PDT) X-Received: by 10.152.37.169 with SMTP id z9mr21523663laj.66.1410915612414; Tue, 16 Sep 2014 18:00:12 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx.google.com with ESMTPS id l10si26429469lbk.90.2014.09.16.18.00.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 18:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id hz20so882704lab.15 for ; Tue, 16 Sep 2014 18:00:12 -0700 (PDT) X-Received: by 10.112.114.202 with SMTP id ji10mr14362526lbb.92.1410915611732; Tue, 16 Sep 2014 18:00:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp494368lbb; Tue, 16 Sep 2014 18:00:10 -0700 (PDT) X-Received: by 10.70.10.100 with SMTP id h4mr107287pdb.162.1410915610175; Tue, 16 Sep 2014 18:00:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz10si32211412pbd.137.2014.09.16.18.00.09 for ; Tue, 16 Sep 2014 18:00:10 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467AbaIQBAI (ORCPT + 5 others); Tue, 16 Sep 2014 21:00:08 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:39218 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039AbaIQBAH (ORCPT ); Tue, 16 Sep 2014 21:00:07 -0400 Received: by mail-pa0-f44.google.com with SMTP id kx10so919817pab.17 for ; Tue, 16 Sep 2014 18:00:06 -0700 (PDT) X-Received: by 10.68.242.134 with SMTP id wq6mr23741582pbc.135.1410915606077; Tue, 16 Sep 2014 18:00:06 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.swisscom.com (70-35-38-154.static.wiline.com. [70.35.38.154]) by mx.google.com with ESMTPSA id nd6sm15228230pbc.28.2014.09.16.18.00.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Sep 2014 18:00:04 -0700 (PDT) From: Srinivas Kandagatla To: David Brown Cc: Daniel Walker , Samuel Ortiz , Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] mfd: ssbi: promote the driver to subsys level Date: Wed, 17 Sep 2014 01:59:54 +0100 Message-Id: <1410915594-15599-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch promtes the driver to be at subsystem level as this driver will be used by gpio controller drivers which inturn are used by many platform drivers. Signed-off-by: Srinivas Kandagatla --- drivers/mfd/ssbi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c index b78942e..4fbe02e 100644 --- a/drivers/mfd/ssbi.c +++ b/drivers/mfd/ssbi.c @@ -331,7 +331,12 @@ static struct platform_driver ssbi_driver = { .of_match_table = ssbi_match_table, }, }; -module_platform_driver(ssbi_driver); + +static int ssbi_init(void) +{ + return platform_driver_register(&ssbi_driver); +} +subsys_initcall(ssbi_init); MODULE_LICENSE("GPL v2"); MODULE_VERSION("1.0");