]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: core: Add device checking to syscon_get_regmap()
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 18:54:38 +0000 (12:54 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:56 +0000 (13:48 +0200)
commit3d7630bf971096341bae6f23f8af093b83576164
tree410ff30d79d5076ca36d2187285b660c3ef997f0
parent9cc582a11376c22e6d4a02dc3c4cec261f63d04c
dm: core: Add device checking to syscon_get_regmap()

This function can only handle a syscon device. It is possible that someone
will make a mistake, so add a check for this.

Also we should return -ENODEV when a device cannot be found, so update the
syscon_get_regmap_by_driver_data() to follow this convention.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/syscon-uclass.c