|
@@ -24,7 +24,7 @@
|
|
/* Max address size we deal with */
|
|
/* Max address size we deal with */
|
|
#define OF_MAX_ADDR_CELLS 4
|
|
#define OF_MAX_ADDR_CELLS 4
|
|
#define OF_CHECK_COUNTS(na, ns) ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
|
|
#define OF_CHECK_COUNTS(na, ns) ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
|
|
- (ns) > 0)
|
|
|
|
|
|
+ (ns) >= 0)
|
|
|
|
|
|
static struct of_bus *of_match_bus(struct device_node *np);
|
|
static struct of_bus *of_match_bus(struct device_node *np);
|
|
static int __of_address_to_resource(struct device_node *dev,
|
|
static int __of_address_to_resource(struct device_node *dev,
|