From patchwork Wed Oct 5 14:29:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 117861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vw0-f56.google.com (mail-vw0-f56.google.com [209.85.212.56]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id F31DAB6FA1 for ; Thu, 6 Oct 2011 01:30:02 +1100 (EST) Received: by vws8 with SMTP id 8sf1134095vws.11 for ; Wed, 05 Oct 2011 07:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:subject:from:to:cc:date:message-id :mime-version:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=8T9b8+yKyRAxhdEh2qR2wJQm3hN391XZ7xE/1pbm5BU=; b=0JdnX0PYU0byzatjR13ENbDiwH41wpgp/VWl6Y/i+Tjn1Jzx+GfdrV2nyGCMDakKgr 1tcfT96dv3ooA8FVQkv/ozD++IiJNZ7yyG7WGJlyKJhRx4xRJz9jgXoPK+R+WarKgZVB 0LZAQrBbSGhIqzqBXFpY+st0yE/laTWUOR8Qc= Received: by 10.220.72.212 with SMTP id n20mr704762vcj.37.1317824998065; Wed, 05 Oct 2011 07:29:58 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.52.24.163 with SMTP id v3ls580407vdf.3.gmail; Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received: by 10.52.98.10 with SMTP id ee10mr1150643vdb.27.1317824997542; Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received: by 10.52.98.10 with SMTP id ee10mr1150642vdb.27.1317824997534; Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received: from mail-qw0-f42.google.com (mail-qw0-f42.google.com [209.85.216.42]) by gmr-mx.google.com with ESMTPS id i18si698048vde.1.2011.10.05.07.29.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of axel.lin@gmail.com designates 209.85.216.42 as permitted sender) client-ip=209.85.216.42; Received: by mail-qw0-f42.google.com with SMTP id c12so1244268qad.15 for ; Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received: by 10.224.208.201 with SMTP id gd9mr2037022qab.253.1317824997288; Wed, 05 Oct 2011 07:29:57 -0700 (PDT) Received: from [218.172.236.6] (218-172-236-6.dynamic.hinet.net. [218.172.236.6]) by mx.google.com with ESMTPS id hr6sm2228698qab.6.2011.10.05.07.29.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 07:29:56 -0700 (PDT) Subject: [rtc-linux] [PATCH] rtc: rtc-puv3: Add __devinit and __devexit markers for probe and remove From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Guan Xuetao , Alessandro Zummo , rtc-linux@googlegroups.com Date: Wed, 05 Oct 2011 22:29:47 +0800 Message-ID: <1317824987.2674.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-Original-Sender: axel.lin@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of axel.lin@gmail.com designates 209.85.216.42 as permitted sender) smtp.mail=axel.lin@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Signed-off-by: Axel Lin --- drivers/rtc/rtc-puv3.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c index b3eba3c..e4b6880 100644 --- a/drivers/rtc/rtc-puv3.c +++ b/drivers/rtc/rtc-puv3.c @@ -220,7 +220,7 @@ static void puv3_rtc_enable(struct platform_device *pdev, int en) } } -static int puv3_rtc_remove(struct platform_device *dev) +static int __devexit puv3_rtc_remove(struct platform_device *dev) { struct rtc_device *rtc = platform_get_drvdata(dev); @@ -236,7 +236,7 @@ static int puv3_rtc_remove(struct platform_device *dev) return 0; } -static int puv3_rtc_probe(struct platform_device *pdev) +static int __devinit puv3_rtc_probe(struct platform_device *pdev) { struct rtc_device *rtc; struct resource *res;