Thread (19 messages) 19 messages, 4 authors, 2012-06-30
STALE5086d

[PATCH v3 4/4] memory: emif: add device tree support to emif driver

From: Rajendra Nayak <hidden>
Date: 2012-06-26 05:19:54
Also in: linux-omap

On Tuesday 26 June 2012 10:39 AM, Shilimkar, Santosh wrote:
quoted
quoted
+#if defined(CONFIG_OF)
quoted
 >  +static const struct of_device_id emif_of_match[] = {
 >  +             { .compatible = "ti,emif-4d" },
 >  +             { .compatible = "ti,emif-4d5" },
 >  +             {},
 >  +};
 >  +MODULE_DEVICE_TABLE(of, emif_of_match);
 >  +#endif
 >  +
 >    static struct platform_driver emif_driver = {
 >         .remove         = __exit_p(emif_remove),
 >         .shutdown       = emif_shutdown,
 >         .driver = {
 >                 .name = "emif",
 >  +#if defined(CONFIG_OF)
 >  +             .of_match_table = of_match_ptr(emif_of_match),
 >  +#endif
 Are these two still #if defined needed?

 Also, what about the IS_DEFINED macro?
Yes. To avoid the build break in !DT build.
No, infact of_match_ptr is there just so you can avoid a
#ifdef around and not break !CONFIG_OF.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help