RE: [PATCH 1/1] Export notifier register functions for kernel module building
On Tue, 24 Mar 2009, Gupta, Ramesh wrote: > > -Original Message- > > From: Paul Walmsley [mailto:p...@pwsan.com] > > > > DSPBridge and > > other drivers needing clock notifiers should pass function pointers to > > clk_notifier_{register,unregister}() in their struct > > platform_data, rather than exporting those symbols. This > > will keep the drivers platform-agnostic, since system-wide > > clock notifiers are not yet upstream. > > I agree on this, I think the latest patch set from Rajendra Naik([1]) > removes the EXPORT_SYMBOL for the clk notifier functions. > > We will send a patch to dspbridge sources to adopt these changes. > > Please let me know your comments. Sounds good to me. regards, - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: [PATCH 1/1] Export notifier register functions for kernel module building
Paul, > -Original Message- > From: Paul Walmsley [mailto:p...@pwsan.com] > Sent: Tuesday, March 24, 2009 2:58 PM > To: Kevin Hilman > Cc: Gupta, Ramesh; linux-omap@vger.kernel.org > Subject: Re: [PATCH 1/1] Export notifier register functions > for kernel module building > > Hello Kevin, Ramesh, > > On Thu, 12 Feb 2009, Kevin Hilman wrote: > > > "Gupta, Ramesh" writes: > > > > > This Patch exports symbols > clk_notifier_register/unregister function > > > for other kernel modules usage. > > > > > > Signed-off-by: Ramesh Gupta G > > > > Thanks, pushed to PM branch. > > As an aside, this patch should be reverted. DSPBridge and > other drivers needing clock notifiers should pass function pointers to > clk_notifier_{register,unregister}() in their struct > platform_data, rather than exporting those symbols. This > will keep the drivers platform-agnostic, since system-wide > clock notifiers are not yet upstream. I agree on this, I think the latest patch set from Rajendra Naik([1]) removes the EXPORT_SYMBOL for the clk notifier functions. Ref[1]: http://marc.info/?l=linux-omap&m=123755561914202&w=2 Ref[2]: http://marc.info/?l=linux-omap&m=123755561914205&w=2 We will send a patch to dspbridge sources to adopt these changes. Please let me know your comments. Thanks Ramesh Gupta G-- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/1] Export notifier register functions for kernel module building
Hello Kevin, Ramesh, On Thu, 12 Feb 2009, Kevin Hilman wrote: > "Gupta, Ramesh" writes: > > > This Patch exports symbols clk_notifier_register/unregister > > function for other kernel modules usage. > > > > Signed-off-by: Ramesh Gupta G > > Thanks, pushed to PM branch. As an aside, this patch should be reverted. DSPBridge and other drivers needing clock notifiers should pass function pointers to clk_notifier_{register,unregister}() in their struct platform_data, rather than exporting those symbols. This will keep the drivers platform-agnostic, since system-wide clock notifiers are not yet upstream. regards, - Paul > > --- > > arch/arm/plat-omap/clock.c |2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c > > index e0940a1..c8d9e96 100644 > > --- a/arch/arm/plat-omap/clock.c > > +++ b/arch/arm/plat-omap/clock.c > > @@ -680,6 +680,7 @@ int clk_notifier_register(struct clk *clk, struct > > notifier_block *nb) > > > > return r; > > } > > +EXPORT_SYMBOL(clk_notifier_register); > > > > /** > > * clk_notifier_unregister - remove a clock change notifier > > @@ -735,6 +736,7 @@ int clk_notifier_unregister(struct clk *clk, struct > > notifier_block *nb) > > > > return r; > > } > > +EXPORT_SYMBOL(clk_notifier_unregister); > > > > > > > > -- > > 1.5.3.2 > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > > the body of a message to majord...@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/1] Export notifier register functions for kernel module building
"Gupta, Ramesh" writes: > This Patch exports symbols clk_notifier_register/unregister > function for other kernel modules usage. > > Signed-off-by: Ramesh Gupta G Thanks, pushed to PM branch. Kevin > --- > arch/arm/plat-omap/clock.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c > index e0940a1..c8d9e96 100644 > --- a/arch/arm/plat-omap/clock.c > +++ b/arch/arm/plat-omap/clock.c > @@ -680,6 +680,7 @@ int clk_notifier_register(struct clk *clk, struct > notifier_block *nb) > > return r; > } > +EXPORT_SYMBOL(clk_notifier_register); > > /** > * clk_notifier_unregister - remove a clock change notifier > @@ -735,6 +736,7 @@ int clk_notifier_unregister(struct clk *clk, struct > notifier_block *nb) > > return r; > } > +EXPORT_SYMBOL(clk_notifier_unregister); > > > > -- > 1.5.3.2 > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 1/1] Export notifier register functions for kernel module building
>From dde519d855e64a312331f86d9442c7b6d9ff0291 Mon Sep 17 00:00:00 2001 From: Ramesh Gupta G Date: Thu, 12 Feb 2009 00:39:47 +0530 Subject: [PATCH 1/1] Export notifier register functions for kernel module building. This Patch exports symbols clk_notifier_register/unregister function for other kernel modules usage. Signed-off-by: Ramesh Gupta G --- arch/arm/plat-omap/clock.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index e0940a1..c8d9e96 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c @@ -680,6 +680,7 @@ int clk_notifier_register(struct clk *clk, struct notifier_block *nb) return r; } +EXPORT_SYMBOL(clk_notifier_register); /** * clk_notifier_unregister - remove a clock change notifier @@ -735,6 +736,7 @@ int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb) return r; } +EXPORT_SYMBOL(clk_notifier_unregister); -- 1.5.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html