Re: [PATCH 03/16] OMAP3: PM: Convert smartreflex driver into a platform driver using hwmods and omap-device layer

Kevin Hilman
2010-03-03T00:02:28Z

Thara Gopinath <thara@ti.com> writes:

> This patch converts the exisitng smartreflex library into a
> platform driver with device , driver registrations using hardware mods.
> As part of this Ntarget values are passed as platform data.
>
> Signed-off-by: Thara Gopinath <thara@ti.com>

[...]

>
> +static int __devinit omap_smartreflex_probe(struct platform_device *pdev)

This can be __init when using platform_driver_probe()...

[...]

>
> +static struct platform_driver smartreflex_driver = {
> + .probe = omap_smartreflex_probe,

and shouldn't need to be listed here either, since it will be __init
and disappear after boot.

Kevin