[PATCH v5 5/8] power: reset: move hisilicon reboot code

Arnd Bergmann arnd at arndb.de
Mon Jul 28 06:04:49 PDT 2014


On Monday 28 July 2014 20:51:20 Haojian Zhuang wrote:
> +
> +static struct of_device_id hisi_reboot_of_match[] = {
> +       { .compatible = "hisilicon,sysctrl" },
> +       {}
> +};
> +
> +static struct platform_driver hisi_reboot_driver = {
> +       .probe = hisi_reboot_probe,
> +       .driver = {
> +               .name = "hisi-reboot",
> +               .of_match_table = hisi_reboot_of_match,
> +       },
> +};
> +module_platform_driver(hisi_reboot_driver);

I think this will get you into trouble if anything else starts
using the "hisilicon,sysctrl" device node. But as long as nothing
does, this seems fine.

	Arnd



More information about the linux-arm-kernel mailing list