From patchwork Tue Sep 9 10:29:37 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: 37077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE2F420566 for ; Tue, 9 Sep 2014 10:30:26 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id a141sf38555234oig.0 for ; Tue, 09 Sep 2014 03:30:26 -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=TuJ7L3s6dMsSybBBKaNWsg1uNQnpo+12VtTSVI4gzbs=; b=CL47tUfJlSuK2GwN3o1bckDuU5qCcFPcrzOOu4p67mus307pVyA5J5AACZ8oQ3x8+S jpJFhLxNcbx+CQ8yKpilBXymf90X+eVfotekkBguzxdWdFVmE5j8ODnnGvhlCs4BYTTJ u+6nFw8oWqvKSJ3m8qoTN8f1aveloE0JRCR0KyX4FSmcV35BuM22JgzUN8DlfSZt2U+Z uHvHlMHElv5a2GOtjv+8elAk6+OubuFKb2dyai3tzutPlwyC0AhwvUGqNboA8Dz1fliB rFHRQ3uQHeiC8cNXhVbH3ZWjdW1uCGM17OVbCcOMThPmpH7x+2EnRv3FYnmqbU1sspcn U51g== X-Gm-Message-State: ALoCoQm83HA/1G3k0TryJHQueCyqOt6QBTAW7/gsaDxZS4VE4k7p/d8PrGf23ryqeHNF/0nD4sTZ X-Received: by 10.182.45.197 with SMTP id p5mr21000128obm.2.1410258626510; Tue, 09 Sep 2014 03:30:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.182 with SMTP id h51ls2197068qgf.80.gmail; Tue, 09 Sep 2014 03:30:26 -0700 (PDT) X-Received: by 10.220.46.5 with SMTP id h5mr324665vcf.55.1410258626376; Tue, 09 Sep 2014 03:30:26 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id hf10si3681423vdb.57.2014.09.09.03.30.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 03:30:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hy10so3085722vcb.3 for ; Tue, 09 Sep 2014 03:30:26 -0700 (PDT) X-Received: by 10.220.184.70 with SMTP id cj6mr29766676vcb.5.1410258626303; Tue, 09 Sep 2014 03:30:26 -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 uj3csp262440vcb; Tue, 9 Sep 2014 03:30:25 -0700 (PDT) X-Received: by 10.70.125.165 with SMTP id mr5mr55686210pdb.102.1410258623911; Tue, 09 Sep 2014 03:30:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fb4si22545618pab.69.2014.09.09.03.30.23 for ; Tue, 09 Sep 2014 03:30:23 -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 S1755335AbaIIKaU (ORCPT ); Tue, 9 Sep 2014 06:30:20 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:35709 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932425AbaIIKaQ (ORCPT ); Tue, 9 Sep 2014 06:30:16 -0400 X-IronPort-AV: E=Sophos;i="5.04,491,1406617200"; d="scan'208";a="45345045" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw1-out.broadcom.com with ESMTP; 09 Sep 2014 04:31:33 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) 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:30:16 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Tue, 9 Sep 2014 03:30:16 -0700 Received: from linaro.ban.broadcom.com (unknown [10.131.60.135]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id E8A019FACC; Tue, 9 Sep 2014 03:30:07 -0700 (PDT) From: To: Linus Walleij , Alexandre Courbot CC: Kamlakant Patel , Subject: [RTF] [PATCH 12/26] gpio: tps65910: use platform based module init Date: Tue, 9 Sep 2014 15:59:37 +0530 Message-ID: <1410258591-28248-13-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.172 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-tps65910.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c index 88f1f5f..a5e6665 100644 --- a/drivers/gpio/gpio-tps65910.c +++ b/drivers/gpio/gpio-tps65910.c @@ -200,18 +200,7 @@ static struct platform_driver tps65910_gpio_driver = { .probe = tps65910_gpio_probe, .remove = tps65910_gpio_remove, }; - -static int __init tps65910_gpio_init(void) -{ - return platform_driver_register(&tps65910_gpio_driver); -} -subsys_initcall(tps65910_gpio_init); - -static void __exit tps65910_gpio_exit(void) -{ - platform_driver_unregister(&tps65910_gpio_driver); -} -module_exit(tps65910_gpio_exit); +module_platform_driver(tps65910_gpio_driver); MODULE_AUTHOR("Graeme Gregory "); MODULE_AUTHOR("Jorge Eduardo Candelaria jedu@slimlogic.co.uk>");