Add a macro of_match_ptr() that allows the .of_match_table
entry in the driver structures to be assigned without having
an #ifdef xxx NULL for the case that OF is not enabled
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
 extern void of_detach_node(struct device_node *);
 #endif
 
+#define of_match_ptr(_ptr)     (_ptr)
 #else /* CONFIG_OF */
 
 static inline bool of_have_populated_dt(void)
        return NULL;
 }
 
+#define of_match_ptr(_ptr)     NULL
 #endif /* CONFIG_OF */
 
 static inline int of_property_read_u32(const struct device_node *np,