[PATCH] cpufreq: exynos: Convert exynos-cpufreq to platform driver
Jingoo Han
jg1.han at samsung.com
Thu Oct 17 04:31:52 EDT 2013
On Thursday, October 17, 2013 2:00 PM, Sachin Kamat wrote:
> On 16 October 2013 21:30, Tomasz Figa <t.figa at samsung.com> wrote:
> > From: Lukasz Majewski <l.majewski at samsung.com>
> >
> > +static struct platform_driver exynos_cpufreq_platdrv = {
> > + .driver = {
> > + .name = "exynos-cpufreq",
> > + .owner = THIS_MODULE,
> > + },
> > + .probe = exynos_cpufreq_init,
>
> I think the prototype of this function should be changed to:
> static int __init exynos_cpufreq_init(struct platform_device *pdev)
>
> to avoid compilation warnings.
Hi Tomasz Figa,
One more thing. :-)
It makes section mismatch warning. Also, module_platform_driver()
is used. Then, '__init' annotation can be removed in order to fix
the section mismatch warning.
static int exynos_cpufreq_init(struct platform_device *pdev)
Thank you.
Best regards,
Jingoo Han
More information about the linux-arm-kernel
mailing list