From patchwork Wed May 18 05:00:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dennis Aberilla X-Patchwork-Id: 96122 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yw0-f56.google.com (mail-yw0-f56.google.com [209.85.213.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 1C629B6EDF for ; Wed, 18 May 2011 15:00:09 +1000 (EST) Received: by ywc21 with SMTP id 21sf1092510ywc.11 for ; Tue, 17 May 2011 22:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf :x-yahoo-newman-property:x-yahoo-newman-id:message-id:x-ymail-osg :x-mailer:date:from:subject:to:cc:mime-version: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 :content-transfer-encoding; bh=FjcD8AT5pnA9HRasNn2doUro3ykKk5fTPB0d62xKAvw=; b=O7OoYLV9exVi7O9qioxayP9/KDHj+K5HM9JL/lqeENRyT6zaF/O1hj1/+rl8wwvqHb j3myPjAjnmizXrPnHB/O9FdsQWI28dYwnTn1nawNtf04bEWJN6M62fz9CHQpUPTdol7I wJ0hhu+b+IStGdFH/m5yvkC7TIwa6HJcok3IM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:x-yahoo-newman-property:x-yahoo-newman-id :message-id:x-ymail-osg:x-mailer:date:from:subject:to:cc :mime-version: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:content-transfer-encoding; b=QtnGiG4xL5LtUuPZBwHaSgKlDTmOqPRuXHTrO45YnFZYxlf6M2elJl0HTPg7M7EVDt Pl0DwkZ/9PxQk+2TTg6y13ZisWo0eguCSKyNvdNTeuXHsGEvZcPVL9x0Fm1Wi3vgCa+l yb0EWqhCkYzLvhDc9Ab+3HMm2Xmgr1gHn5CaA= Received: by 10.91.8.12 with SMTP id l12mr128106agi.16.1305694805141; Tue, 17 May 2011 22:00:05 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.231.0.151 with SMTP id 23ls150777ibb.1.gmail; Tue, 17 May 2011 22:00:04 -0700 (PDT) Received: by 10.231.206.6 with SMTP id fs6mr630167ibb.12.1305694804635; Tue, 17 May 2011 22:00:04 -0700 (PDT) Received: by 10.231.206.6 with SMTP id fs6mr630164ibb.12.1305694804613; Tue, 17 May 2011 22:00:04 -0700 (PDT) Received: from nm26-vm0.bullet.mail.ne1.yahoo.com (nm26-vm0.bullet.mail.ne1.yahoo.com [98.138.91.68]) by gmr-mx.google.com with SMTP id r31si279528ibu.2.2011.05.17.22.00.03; Tue, 17 May 2011 22:00:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of denzzzhome@yahoo.com designates 98.138.91.68 as permitted sender) client-ip=98.138.91.68; Received: from [98.138.90.52] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 18 May 2011 05:00:03 -0000 Received: from [98.138.87.4] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 18 May 2011 05:00:03 -0000 Received: from [127.0.0.1] by omp1004.mail.ne1.yahoo.com with NNFMP; 18 May 2011 05:00:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 303408.87323.bm@omp1004.mail.ne1.yahoo.com Received: (qmail 98631 invoked by uid 60001); 18 May 2011 05:00:03 -0000 Message-ID: <204176.97974.qm@web120507.mail.ne1.yahoo.com> X-YMail-OSG: s1pAp7gVM1mrAgZflnMswBwb6oRW92deT65AaY28ToSH7XC ErzPvfGE4xNjj9ZhyLeR7N4p4pYjnDLbn_oNa1l_58vsGt2F0SRpTAnOyrpW sKIEJHcftNgs3z9BVNR9MG7ycJ9LZl422IgT0uvF.2hk9fqFNkpQkz4d84Av fRmR.4XblPiHMnDpqG4UoYRoWij3_iBBEZmjGnt8lJU8UmxBiGVKdWc0TEr7 IJEckIT7WV7voD69BX.v3XfJBH3IUYpiGK.N_0vRepy4SfdZgiNwGNr0dx2f yioEj4oZSUvLPPeznGqWcVzxMqs0P.eGFD8XCkG5xrxtnirLAGx93sDktude VOZt.hRw66UCedI92qW6c6aMLyZYyBwogCJ_BzdopbIjB8.ZE1HYofjRU9vf U3zJojaKYMDkJpesxfQ-- Received: from [202.37.96.35] by web120507.mail.ne1.yahoo.com via HTTP; Tue, 17 May 2011 22:00:03 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.111.303096 Date: Tue, 17 May 2011 22:00:03 -0700 (PDT) From: Dennis Aberilla Subject: [rtc-linux] [PATCH v2] rtc: rtc-ds1390/rtc-ds3234/rtc-m41t94: eliminate compile warning To: linux-kernel@vger.kernel.org Cc: axel.lin@gmail.com, Mark Jackson , "Kim B. Heino" , Alessandro Zummo , Thomas Gleixner , rtc-linux@googlegroups.com MIME-Version: 1.0 X-Original-Sender: denzzzhome@yahoo.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of denzzzhome@yahoo.com designates 98.138.91.68 as permitted sender) smtp.mail=denzzzhome@yahoo.com; dkim=pass (test mode) header.i=@yahoo.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: , From: Axel Lin These drivers are registered as spi drivers, thus use spi_get_drvdata instead of platform_get_drvdata. This patch eliminates the following compile warning: drivers/rtc/rtc-ds1390.c: In function 'ds1390_remove': drivers/rtc/rtc-ds1390.c:161: warning: passing argument 1 of 'platform_get_drvdata' from incompatible pointer type drivers/rtc/rtc-ds3234.c: In function 'ds3234_remove': drivers/rtc/rtc-ds3234.c:161: warning: passing argument 1 of 'platform_get_drvdata' from incompatible pointer type drivers/rtc/rtc-m41t94.c: In function 'm41t94_remove': drivers/rtc/rtc-m41t94.c:139: warning: passing argument 1 of 'platform_get_drvdata' from incompatible pointer type Signed-off-by: Axel Lin Signed-off by: Dennis Aberilla Cc: Mark Jackson Cc: Kim B. Heino --- drivers/rtc/rtc-ds1390.c |    2 +- drivers/rtc/rtc-ds3234.c |    2 +- drivers/rtc/rtc-m41t94.c |    2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index 26a86d2..b038d2c 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c @@ -158,7 +158,7 @@ static int __devinit ds1390_probe(struct spi_device *spi) static int __devexit ds1390_remove(struct spi_device *spi) { -    struct ds1390 *chip = platform_get_drvdata(spi); +    struct ds1390 *chip = spi_get_drvdata(spi);     rtc_device_unregister(chip->rtc);     kfree(chip); diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c index a774ca3..bbd2622 100644 --- a/drivers/rtc/rtc-ds3234.c +++ b/drivers/rtc/rtc-ds3234.c @@ -158,7 +158,7 @@ static int __devinit ds3234_probe(struct spi_device *spi) static int __devexit ds3234_remove(struct spi_device *spi) { -    struct rtc_device *rtc = platform_get_drvdata(spi); +    struct rtc_device *rtc = spi_get_drvdata(spi);     rtc_device_unregister(rtc);     return 0; diff --git a/drivers/rtc/rtc-m41t94.c b/drivers/rtc/rtc-m41t94.c index c8c97a4..e259ed7 100644 --- a/drivers/rtc/rtc-m41t94.c +++ b/drivers/rtc/rtc-m41t94.c @@ -136,7 +136,7 @@ static int __devinit m41t94_probe(struct spi_device *spi) static int __devexit m41t94_remove(struct spi_device *spi) { -    struct rtc_device *rtc = platform_get_drvdata(spi); +    struct rtc_device *rtc = spi_get_drvdata(spi);     if (rtc)         rtc_device_unregister(rtc);