clocksource: always define CLOCKSOURCE_OF_DECLARE
authorStephen Warren <swarren@nvidia.com>
Wed, 30 Jan 2013 17:49:30 +0000 (10:49 -0700)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Feb 2013 03:57:30 +0000 (19:57 -0800)
This allows clocksource drivers that support both DT and non-DT to
always invoke macro CLOCKSOURCE_OF_DECLARE(), rather than wrapping
it in a #ifdef CONFIG_CLKSRC_OF, which simplifies their code.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
include/linux/clocksource.h

index 7944f14ea947970446ce61d36e5c3a53aa882a7c..27cfda427dd9106b15af57c3ad4825445a4b8feb 100644 (file)
@@ -339,6 +339,8 @@ extern void clocksource_of_init(void);
        static const struct of_device_id __clksrc_of_table_##name       \
                __used __section(__clksrc_of_table)                     \
                 = { .compatible = compat, .data = fn };
+#else
+#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)
 #endif
 
 #endif /* _LINUX_CLOCKSOURCE_H */
This page took 0.027799 seconds and 5 git commands to generate.