From patchwork Tue Sep 9 10:29:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kamlakant.patel@linaro.org X-Patchwork-Id: 37072 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 15F6B20566 for ; Tue, 9 Sep 2014 10:30:00 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf18940913pab.9 for ; Tue, 09 Sep 2014 03:29:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=f+fLB/j/P7UeYFNosYkabWtl7+cf8Qthu8q2ioR7Mns=; b=B5e4I9Aq1Q5xgzrbEE+m/KNn3jNiKBPLpvb56NzRFt6nxGWJ2K7AdwSr5KdZSRrBWA djXX1qdKgd8tpCKtqpgWj9aBXGHAWhcrfuVPvLhEz2Gy662XXgHlloXCNGE7nNyRBRfE J6GP5AVaV52GkwRUtO0A6gtzXh7G2cCNY1RNRXwD4EaD4zaQl9JYRqKWIFAZwnRr8bfJ VUJ81Nt7GnE0hFoEHRk40ywg+vkIOvMMv5jJfwRggkpJwJerb/4vRAETFSbItS2s76Ap EhksUGXoU/Kmq56fECp5MmPpiRkpqUrIQQ4hTnjdXH6/4e3Zy8l1pS8nugBa3IgNgdiW jaAQ== X-Gm-Message-State: ALoCoQlvvmak/mlXIeRsCfnSZ47OnuGe4UjwLd02EFP53f/R1eVbMHw9bRPfy8rr7U/eKpQlOmie X-Received: by 10.68.135.99 with SMTP id pr3mr7214663pbb.9.1410258599409; Tue, 09 Sep 2014 03:29:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.5 with SMTP id u5ls2103345qgd.72.gmail; Tue, 09 Sep 2014 03:29:59 -0700 (PDT) X-Received: by 10.220.74.195 with SMTP id v3mr28575299vcj.23.1410258599306; Tue, 09 Sep 2014 03:29:59 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id xm1si5597136vdc.62.2014.09.09.03.29.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 03:29:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so227643vcb.14 for ; Tue, 09 Sep 2014 03:29:59 -0700 (PDT) X-Received: by 10.52.116.132 with SMTP id jw4mr3141081vdb.42.1410258599213; Tue, 09 Sep 2014 03:29:59 -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.221.45.67 with SMTP id uj3csp262382vcb; Tue, 9 Sep 2014 03:29:58 -0700 (PDT) X-Received: by 10.66.140.76 with SMTP id re12mr13613039pab.141.1410258598372; Tue, 09 Sep 2014 03:29:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk4si22184263pbb.236.2014.09.09.03.29.58 for ; Tue, 09 Sep 2014 03:29:58 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-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 S932397AbaIIK34 (ORCPT ); Tue, 9 Sep 2014 06:29:56 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:36487 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932389AbaIIK3z (ORCPT ); Tue, 9 Sep 2014 06:29:55 -0400 X-IronPort-AV: E=Sophos;i="5.04,491,1406617200"; d="scan'208";a="45107433" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw2-out.broadcom.com with ESMTP; 09 Sep 2014 03:46:50 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 9 Sep 2014 03:29:54 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Tue, 9 Sep 2014 03:29:55 -0700 Received: from linaro.ban.broadcom.com (unknown [10.131.60.135]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 0A0029FA1E; Tue, 9 Sep 2014 03:29:52 -0700 (PDT) From: To: Linus Walleij , Alexandre Courbot CC: Kamlakant Patel , Subject: [RTF] [PATCH 05/26] gpio: mxc: use platform based module init Date: Tue, 9 Sep 2014 15:59:30 +0530 Message-ID: <1410258591-28248-6-git-send-email-kamlakant.patel@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1410258591-28248-1-git-send-email-kamlakant.patel@linaro.org> References: <1410258591-28248-1-git-send-email-kamlakant.patel@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kamlakant.patel@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.220.169 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: , From: Kamlakant Patel Convert *_initcall based probing of GPIO drivers to regular module_init based probe. Signed-off-by: Kamlakant Patel --- drivers/gpio/gpio-mxc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index f4e54a9..750f0f6 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -502,12 +502,7 @@ static struct platform_driver mxc_gpio_driver = { .probe = mxc_gpio_probe, .id_table = mxc_gpio_devtype, }; - -static int __init gpio_mxc_init(void) -{ - return platform_driver_register(&mxc_gpio_driver); -} -postcore_initcall(gpio_mxc_init); +module_platform_driver(mxc_gpio_driver); MODULE_AUTHOR("Freescale Semiconductor, " "Daniel Mack , "