of: add empty of_find_node_by_path() for !OF
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 16 Apr 2014 06:49:20 +0000 (10:49 +0400)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:27:54 +0000 (16:27 +0800)
commit9565a65b88d04f33f3458047e7cbbaec6d37aef5
tree77c0b11fb4fa5a6ead2c6b9c7426cf13e8eeedff
parent9092bf1d95ab080d3dd0d0974f2e8af28a960a6e
of: add empty of_find_node_by_path() for !OF

Add an empty version of of_find_node_by_path().
This fixes following build error for asoc tree:
sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe':
sound/soc/fsl/fsl_ssi.c:1471:2: error: implicit declaration of function 'of_find_node_by_path' [-Werror=implicit-function-declaration]
  sprop = of_get_property(of_find_node_by_path("/"), "compatible", NULL);

Change-Id: Ib635dffb97877a2820fb80b99db96a285a6d2d14
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit 9e7f1b065a312062eb8acdb1c505ddb3792b7583)
include/linux/of.h