lkml.org 
[lkml]   [2013]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] gpio: em: Add Device Tree support
Hi Magnus,

On Tue, Feb 26, 2013 at 10:26:23PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Update the Emma Mobile GPIO driver to add DT support.
>

...

> @@ -366,15 +387,33 @@ static int em_gio_remove(struct platform
> return 0;
> }
>

#ifdef CONFIG_OF here? No need to have extra aliases in modules if OF
support is not enabled (or is entire ARM arch now enables device tree?).

> +static const struct of_device_id em_gio_dt_ids[] = {
> + { .compatible = "renesas,em-gio", },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, em_gio_dt_ids);
> +
> static struct platform_driver em_gio_device_driver = {
> .probe = em_gio_probe,
> .remove = em_gio_remove,
> .driver = {
> .name = "em_gio",
> + .of_match_table = em_gio_dt_ids,
> + .owner = THIS_MODULE,
> }
> };
>

--
Dmitry


\
 
 \ /
  Last update: 2013-02-27 00:23    [W:0.045 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site