From patchwork Tue Sep 9 10:29:28 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: 37069 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 90F7020566 for ; Tue, 9 Sep 2014 10:29:54 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf82595300oac.5 for ; Tue, 09 Sep 2014 03:29:54 -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=OfoTJSIPKY/Jf8JWuu1l3z9YEWHqzyqem606Qc/2uVw=; b=gKp5k/czzenGrKIaF5Fg6fV0r8MtFupDoq//6PTXjEm282t13h4Dd/o6gsVO15nNHq edll/jclrVlFub2m+A6lLfbe0KNNsnmURRlO673gRM9K/AfNTPnooDVc6t2lFpdo0hjw U5CHtB6MG8EZth4U0qc38SRrOlwxKoZeDHiDiK0RDsnLEtbCpuHp5MD7oNFUtgtBVLxL 1NWWTc9Lynj5xQkKyDDLuDFOgR3BpWH57YRof2Y84Cai8IiywhQ4qix8rFQqA5GRnDgR NoDbrtrdbN1g7aM54hTHcoczrKbh5n7fzyFXI0usShkRgmup2PBHc2AaDp3xl1drO63e Nvqg== X-Gm-Message-State: ALoCoQmFFLF3MNViQXIvnIjMF3UW7oGkzxt2ObZJtgRZyLNWdWT1f9W7wkbzOXfgE1sUNFmuJROn X-Received: by 10.182.166.73 with SMTP id ze9mr21164536obb.4.1410258594245; Tue, 09 Sep 2014 03:29:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.6 with SMTP id q6ls2244830qgd.82.gmail; Tue, 09 Sep 2014 03:29:54 -0700 (PDT) X-Received: by 10.221.44.69 with SMTP id uf5mr30141632vcb.4.1410258594124; Tue, 09 Sep 2014 03:29:54 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id wn1si4987136vcb.98.2014.09.09.03.29.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 03:29:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so16592471vcb.20 for ; Tue, 09 Sep 2014 03:29:54 -0700 (PDT) X-Received: by 10.221.20.4 with SMTP id qm4mr295251vcb.58.1410258594010; Tue, 09 Sep 2014 03:29:54 -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 uj3csp262372vcb; Tue, 9 Sep 2014 03:29:53 -0700 (PDT) X-Received: by 10.70.87.134 with SMTP id ay6mr16208111pdb.68.1410258593183; Tue, 09 Sep 2014 03:29:53 -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.52 for ; Tue, 09 Sep 2014 03:29:53 -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 S932394AbaIIK3w (ORCPT ); Tue, 9 Sep 2014 06:29:52 -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 S932391AbaIIK3v (ORCPT ); Tue, 9 Sep 2014 06:29:51 -0400 X-IronPort-AV: E=Sophos;i="5.04,491,1406617200"; d="scan'208";a="45107428" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 09 Sep 2014 03:46:46 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 9 Sep 2014 03:29:51 -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:51 -0700 Received: from linaro.ban.broadcom.com (unknown [10.131.60.135]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id E83C19F9F9; Tue, 9 Sep 2014 03:29:49 -0700 (PDT) From: To: Linus Walleij , Alexandre Courbot CC: Kamlakant Patel , Subject: [RTF] [PATCH 03/26] gpio: iop: use platform based module init Date: Tue, 9 Sep 2014 15:59:28 +0530 Message-ID: <1410258591-28248-4-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.175 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-iop.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 0a5e9d3..d646421 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -124,9 +124,4 @@ static struct platform_driver iop3xx_gpio_driver = { }, .probe = iop3xx_gpio_probe, }; - -static int __init iop3xx_gpio_init(void) -{ - return platform_driver_register(&iop3xx_gpio_driver); -} -arch_initcall(iop3xx_gpio_init); +module_platform_driver(iop3xx_gpio_driver);