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: 4922211 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 460E69F350 for ; Wed, 17 Sep 2014 00:58:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B465720158 for ; Wed, 17 Sep 2014 01:00:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B929920138 for ; Wed, 17 Sep 2014 01:00:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467AbaIQBAI (ORCPT ); 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-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=lgp3m3K2qOwSgyFVYJYpOfz7CcJMHD9C9mDw0pvBC1g=; b=PkJiMN6nHVnVOx0P44fjxcCjQd1y6RTcfKyhwxOhMa8CMJYa2XIWONXvCIcQIutvjc qbbMka5XUBqbo0But/6MOSX8BmYSZcBnbR1dUsMnztRB+V512FNkFcrDD7lSHqjceY2c BKGaZfF9o+jVh1KZRubs+2bh7KTTW8Xg1dqCGztck0tUMAXGHnWB9CThXR+vUA+zX53t BWWOy5wxmtJwEpwqjymF1Q+4QsL1p7c/g+F5yVD1mNRUCHaYo6SiA9iFWKUzxISFIOQ7 0sGa2or3/kPNSXuYdSMehUwyWPpAF0e5AOrQtPb5IUrFge4ylA4hbrn1sjrai2buMXSI 9oDA== X-Gm-Message-State: ALoCoQlzO35jHILojwYV3eT3VRXc9OGBlN2WTQOi0gTbkmIkR1NWyvtltrcmjgioKYMQBLFCT1aZ 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: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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");