of: implement of_node_to_nid as a weak function
authorRob Herring <rob.herring@calxeda.com>
Tue, 17 Sep 2013 15:42:50 +0000 (10:42 -0500)
committerRob Herring <rob.herring@calxeda.com>
Thu, 10 Oct 2013 01:04:07 +0000 (20:04 -0500)
commit0c3f061c195ceb891067b6de9e4ecc347c4dea31
treea576f97862dc34377dd55734bff47da6bb7603c7
parent25ff79443cbfa924b8df1d4a8a0fbff83816938a
of: implement of_node_to_nid as a weak function

Implement of_node_to_nid as weak function to remove the dependency on
asm/prom.h. This is in preparation to make prom.h optional.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
arch/powerpc/include/asm/prom.h
arch/sparc/include/asm/prom.h
drivers/of/base.c
include/linux/of.h