Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755665Ab3CFBKB (ORCPT ); Tue, 5 Mar 2013 20:10:01 -0500 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:53836 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755465Ab3CFBJ7 (ORCPT ); Tue, 5 Mar 2013 20:09:59 -0500 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.131.214.131 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+PDQK34YF6ffWtdsRpNCKf Date: Tue, 5 Mar 2013 17:09:53 -0800 From: Tony Lindgren To: Mauro Carvalho Chehab Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm@kernel.org, Timo Kokkonen , Laurent Pinchart , Greg Kroah-Hartman , linux-media@vger.kernel.org Subject: Re: [PATCH 6/9] [media] ir-rx51: fix clock API related build issues Message-ID: <20130306010952.GJ11806@atomide.com> References: <1362521809-22989-1-git-send-email-arnd@arndb.de> <1362521809-22989-7-git-send-email-arnd@arndb.de> <20130305212351.4993d8c6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130305212351.4993d8c6@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2370 Lines: 72 * Mauro Carvalho Chehab [130305 16:28]: > Em Tue, 5 Mar 2013 23:16:46 +0100 > Arnd Bergmann escreveu: > > > OMAP1 no longer provides its own clock interfaces since patch > > a135eaae52 "ARM: OMAP: remove plat/clock.h". This is great, but > > we now have to convert the ir-rx51 driver to use the generic > > interface from linux/clk.h. > > > > The driver also uses the omap_dm_timer_get_fclk() function, > > which is not exported for OMAP1, so we have to move the > > definition out of the OMAP2 specific section. > > > > Signed-off-by: Arnd Bergmann > > Cc: Mauro Carvalho Chehab > > From my side: > Acked-by: Mauro Carvalho Chehab There's just one issue, this driver most likely only needed on rx51 board.. So I suggest we just mark the driver depends on ARCH_OMAP2PLUS and let's drop this patch. This driver is already disabled for ARCH_MULTIPLATFORM as we need to move dmtimer.c to drivers and have some minimal include/linux/timer-omap.h for it. > > --- a/arch/arm/plat-omap/dmtimer.c > > +++ b/arch/arm/plat-omap/dmtimer.c > > @@ -333,6 +333,14 @@ int omap_dm_timer_get_irq(struct omap_dm_timer *timer) > > } > > EXPORT_SYMBOL_GPL(omap_dm_timer_get_irq); > > > > +struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer) > > +{ > > + if (timer) > > + return timer->fclk; > > + return NULL; > > +} > > +EXPORT_SYMBOL_GPL(omap_dm_timer_get_fclk); > > + > > #if defined(CONFIG_ARCH_OMAP1) > > #include > > /** > > @@ -371,14 +379,6 @@ EXPORT_SYMBOL_GPL(omap_dm_timer_modify_idlect_mask); > > > > #else > > > > -struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer) > > -{ > > - if (timer) > > - return timer->fclk; > > - return NULL; > > -} > > -EXPORT_SYMBOL_GPL(omap_dm_timer_get_fclk); > > - > > __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask) > > { > > BUG(); Then omap_dm_timer_get_fclk() won't work on omap1 as there's no separate functional clock. We probably should not even export this function eventually when things are fixed up. Regards, Tony -- 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/