Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758420AbYGaBPK (ORCPT ); Wed, 30 Jul 2008 21:15:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753940AbYGaBO4 (ORCPT ); Wed, 30 Jul 2008 21:14:56 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:1107 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750935AbYGaBOz (ORCPT ); Wed, 30 Jul 2008 21:14:55 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=qoMfX5lavkchEoH37tdjVyHPjwnKoZWTUtPuq31GFcCmZqpBByMBd6N1hRMvX2rogz Oju6YX7Jvz01YSYo6G6WHn6r82MCwhPgUB9GiGF7dQ3Jmoqu+70itzIP2ojAgl6EKYXd NQhiI7zTVhb7A5Aj9NdywaFlyNKLw67N4mogw= Message-ID: <919fe2b30807301814t5973fa29gb092890bbd135f6e@mail.gmail.com> Date: Wed, 30 Jul 2008 21:14:53 -0400 From: "M. Asselstine" To: "Alexander Beregalov" Subject: Re: [PATCH] atyfb_base.c: fix warning Cc: syrjala@sci.fi, adaplas@gmail.com, linux-fbdev-devel@lists.sourceforge.net, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20080730210352.GA29355@orion> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080730210352.GA29355@orion> X-Google-Sender-Auth: 048918936e1afd11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2288 Lines: 64 On Wed, Jul 30, 2008 at 5:03 PM, Alexander Beregalov wrote: > From: Alexander Beregalov > > atyfb_base.c: fix warning > > drivers/video/aty/atyfb_base.c:2663: warning: 'aty_resume_chip' defined > but not used > > Signed-off-by: Alexander Beregalov > Cc: Ville Syrjala > Cc: Antonino A. Daplas Looks good, should you maybe move the aty_resume_chip() up into the existing #if defined(CONFIG_PM) &&... that atyfb_pci_resume() is in? Not sure, just a thought. Reviewed-by: Mark Asselstine > --- > > drivers/video/aty/atyfb_base.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c > index 620ba81..9e5dfb1 100644 > --- a/drivers/video/aty/atyfb_base.c > +++ b/drivers/video/aty/atyfb_base.c > @@ -244,7 +244,9 @@ static int atyfb_sync(struct fb_info *info); > */ > > static int aty_init(struct fb_info *info); > +#if defined(CONFIG_PM) && defined(CONFIG_PCI) > static void aty_resume_chip(struct fb_info *info); > +#endif > #ifdef CONFIG_ATARI > static int store_video_par(char *videopar, unsigned char m64_num); > #endif > @@ -2659,6 +2661,7 @@ aty_init_exit: > return ret; > } > > +#if defined(CONFIG_PM) && defined(CONFIG_PCI) > static void aty_resume_chip(struct fb_info *info) > { > struct atyfb_par *par = info->par; > @@ -2671,6 +2674,7 @@ static void aty_resume_chip(struct fb_info *info) > if (par->aux_start) > aty_st_le32(BUS_CNTL, aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par); > } > +#endif /* defined(CONFIG_PM) && defined(CONFIG_PCI) */ > > #ifdef CONFIG_ATARI > static int __devinit store_video_par(char *video_str, unsigned char m64_num) > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/