mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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.
This commit is contained in:
commit
9d20593a72
10 changed files with 183 additions and 119 deletions
|
|
@ -19,7 +19,7 @@
|
|||
#include <linux/interrupt.h>
|
||||
#include <linux/init.h>
|
||||
#include <asm/io.h>
|
||||
#if defined(CONFIG_OF)
|
||||
#if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE))
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/of_platform.h>
|
||||
|
|
@ -581,7 +581,7 @@ static struct platform_driver ulite_platform_driver = {
|
|||
/* ---------------------------------------------------------------------
|
||||
* OF bus bindings
|
||||
*/
|
||||
#if defined(CONFIG_OF)
|
||||
#if defined(CONFIG_OF) && (defined(CONFIG_PPC32) || defined(CONFIG_MICROBLAZE))
|
||||
static int __devinit
|
||||
ulite_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
|
|
@ -631,11 +631,11 @@ static inline void __exit ulite_of_unregister(void)
|
|||
{
|
||||
of_unregister_platform_driver(&ulite_of_driver);
|
||||
}
|
||||
#else /* CONFIG_OF */
|
||||
/* CONFIG_OF not enabled; do nothing helpers */
|
||||
#else /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */
|
||||
/* Appropriate config not enabled; do nothing helpers */
|
||||
static inline int __init ulite_of_register(void) { return 0; }
|
||||
static inline void __exit ulite_of_unregister(void) { }
|
||||
#endif /* CONFIG_OF */
|
||||
#endif /* CONFIG_OF && (CONFIG_PPC32 || CONFIG_MICROBLAZE) */
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
* Module setup/teardown
|
||||
|
|
|
|||
Loading…
Reference in a new issue