driver-core: remove conditionals around devicetree pointers
Having conditional around the of_match_table and the of_node pointers turns out to make driver code use ugly #ifdef blocks. Drop the conditionals and remove the #ifdef blocks from the affected drivers. Also tidy up minor whitespace issues within the same hunks. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c56eb8fb6d
commit
c9e358dfc4
10 changed files with 8 additions and 43 deletions
|
@ -23,8 +23,6 @@
|
|||
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
typedef u32 phandle;
|
||||
typedef u32 ihandle;
|
||||
|
||||
|
@ -65,6 +63,8 @@ struct device_node {
|
|||
#endif
|
||||
};
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
/* Pointer for first entry in chain of all nodes. */
|
||||
extern struct device_node *allnodes;
|
||||
extern struct device_node *of_chosen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue