aboutsummaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2018-06-28 15:42:20 +0100
committerRussell King <[email protected]>2018-08-13 16:27:52 +0100
commit53ccb22b8d4a9293cf4249f3b526892810038fd3 (patch)
tree2c4392ee175bbac3e4b4a12102d4b3052fcd6518 /lib/net_utils.c
parent76672e2e5b86d330e236eabe3ca3d471a581df57 (diff)
ARM: 8778/1: clkdev: don't call __of_clk_get_by_name() unnecessarily from clk_get()
The way this function is implemented caused some confusion when converting the TI DaVinci platform to using the common clock framework. Current kernel supports booting DaVinci boards both in device tree as well as legacy, board-file mode. In the latter, we always end up calling clk_get_sys() as of_node is NULL and __of_clk_get_by_name() returns -ENOENT. It was not obvious at first glance how clk_get(dev, NULL) will work in board-file mode since we always call __of_clk_get_by_name(). Let's make it clearer by checking if of_node is NULL and skipping right to clk_get_sys(). Cc: Sekhar Nori <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: David Lechner <[email protected]> Reviewed-by: David Lechner <[email protected]> Reviewed-by: Sekhar Nori <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions