diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 20:01:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 20:01:19 -0400 |
commit | 9d20593a722c2dab7a5ab74f5d8c9b604aca52f9 (patch) | |
tree | b5492b3191f29f68018c4d76f41f8bab379db0c5 /drivers/serial | |
parent | 9b59a0a4eefa132a3899b6e8d362f92559c67844 (diff) | |
parent | 9205124c66a69664c6825501cb062ebd2acd3b3a (diff) |
Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6
* 'merge' of git://git.secretlab.ca/git/linux-2.6:
powerpc/5200: Build fix for mpc52xx watchdog timer code
of: Fix comparison of "compatible" properties
powerpc/52xx: update defconfigs
spi/omap2_mcspi: Use transaction speed if provided
spi/omap2_mcspi: fix NULL pointer dereference
uartlite: Fix build on sparc.
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/uartlite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c index ab2ab3c81834..f0a6c61b17f7 100644 --- a/drivers/serial/uartlite.c +++ b/drivers/serial/uartlite.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <asm/io.h> | 21 | #include <asm/io.h> |
22 | #if defined(CONFIG_OF) | 22 | #if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE)) |
23 | #include <linux/of.h> | 23 | #include <linux/of.h> |
24 | #include <linux/of_device.h> | 24 | #include <linux/of_device.h> |
25 | #include <linux/of_platform.h> | 25 | #include <linux/of_platform.h> |
@@ -581,7 +581,7 @@ static struct platform_driver ulite_platform_driver = { | |||
581 | /* --------------------------------------------------------------------- | 581 | /* --------------------------------------------------------------------- |
582 | * OF bus bindings | 582 | * OF bus bindings |
583 | */ | 583 | */ |
584 | #if defined(CONFIG_OF) | 584 | #if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE)) |
585 | static int __devinit | 585 | static int __devinit |
586 | ulite_of_probe(struct of_device *op, const struct of_device_id *match) | 586 | ulite_of_probe(struct of_device *op, const struct of_device_id *match) |
587 | { | 587 | { |
@@ -631,11 +631,11 @@ static inline void __exit ulite_of_unregister(void) | |||
631 | { | 631 | { |
632 | of_unregister_platform_driver(&ulite_of_driver); | 632 | of_unregister_platform_driver(&ulite_of_driver); |
633 | } | 633 | } |
634 | #else /* CONFIG_OF */ | 634 | #else /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */ |
635 | /* CONFIG_OF not enabled; do nothing helpers */ | 635 | /* Appropriate config not enabled; do nothing helpers */ |
636 | static inline int __init ulite_of_register(void) { return 0; } | 636 | static inline int __init ulite_of_register(void) { return 0; } |
637 | static inline void __exit ulite_of_unregister(void) { } | 637 | static inline void __exit ulite_of_unregister(void) { } |
638 | #endif /* CONFIG_OF */ | 638 | #endif /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */ |
639 | 639 | ||
640 | /* --------------------------------------------------------------------- | 640 | /* --------------------------------------------------------------------- |
641 | * Module setup/teardown | 641 | * Module setup/teardown |