[PATCH v11] reset: Add driver for gpio-controlled reset pins
Ben Dooks
ben.dooks at codethink.co.uk
Fri Jul 26 17:05:43 EDT 2013
On 26/07/13 11:26, Philipp Zabel wrote:
> This driver implements a reset controller device that toggle a gpio
> connected to a reset pin of a peripheral IC. The delay between assertion
> and de-assertion of the reset signal can be configured via device tree.
>
> Signed-off-by: Philipp Zabel<p.zabel at pengutronix.de>
> Reviewed-by: Stephen Warren<swarren at nvidia.com>
[snip]
> +static struct of_device_id gpio_reset_dt_ids[] = {
> + { .compatible = "gpio-reset" },
> + { }
> +};
I think you need the following:
MODULE_DEVICE_TABLE(of, gpio_reset_dt_ids);
> +static struct platform_driver gpio_reset_driver = {
> + .probe = gpio_reset_probe,
> + .remove = gpio_reset_remove,
> + .driver = {
> + .name = "gpio-reset",
> + .owner = THIS_MODULE,
> + .of_match_table = of_match_ptr(gpio_reset_dt_ids),
> + },
> +};
> +
> +module_platform_driver(gpio_reset_driver);
> +
> +MODULE_AUTHOR("Philipp Zabel<p.zabel at pengutronix.de>");
> +MODULE_DESCRIPTION("gpio reset controller");
> +MODULE_LICENSE("GPL");
> +MODULE_ALIAS("platform:gpio-reset");
> +MODULE_DEVICE_TABLE(of, gpio_reset_dt_ids);
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
More information about the linux-arm-kernel
mailing list