dm: core: Change syscon to use helper function
authorSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 16:54:51 +0000 (09:54 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 7 Feb 2020 14:41:24 +0000 (22:41 +0800)
commitae44cafcb3f1287f618693bab865fcdbe4abb90f
tree04b4d57045777a0c3feb75f0171c97fca8861730
parent50162348f0d3b915004733131acd81805e202c76
dm: core: Change syscon to use helper function

Now that we have uclass_first_device_drvdata(), use it from syscon to
reduce code duplication.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/syscon-uclass.c