Re: [PATCH 4/4] gpio: tps65910: move this as platform driver

From: Grant Likely
Date: Fri May 11 2012 - 13:40:58 EST


On Wed, 9 May 2012 18:40:57 +0530, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote:
> Make the gpio-tps65910 as platform driver and register
> this from tps65910 core driver as mfd sub device.
>
> Signed-off-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>

Minor comment below, but otherwise:

Acked-by: Grant Likely <grant.likely@xxxxxxxxxxxx>
> +static struct platform_driver tps65910_gpio_driver = {
> + .driver.name = "tps65910-gpio",
> + .driver.owner = THIS_MODULE,
> + .probe = tps65910_gpio_probe,
> + .remove = __devexit_p(tps65910_gpio_remove),
> +};
> +
> +static int __init tps65910_gpio_init(void)
> +{
> + return platform_driver_register(&tps65910_gpio_driver);
> +}
> +subsys_initcall(tps65910_gpio_init);
> +
> +static void __exit tps65910_gpio_exit(void)
> +{
> + platform_driver_unregister(&tps65910_gpio_driver);
> +}
> +module_exit(tps65910_gpio_exit);

module_platform_driver()

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/