OF: Add of_match_ptr() macro
authorBen Dooks <ben-linux@fluff.org>
Wed, 3 Aug 2011 09:11:42 +0000 (10:11 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 30 Sep 2011 01:31:48 +0000 (19:31 -0600)
commit3a1e362e3f3cd571b3974b8d44b8e358ec7a098c
tree89a3b59e55e8564dccd9fb0124b79038f39e3ae5
parentaba3dfff9a75eb272c4f47994f16eb5d548a5af1
OF: Add of_match_ptr() macro

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>
include/linux/of.h