commit | ead649796ea22f80d7e20307cca16cf907872e8d | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jul 06 12:54:38 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Jul 21 17:39:33 2015 -0600 |
tree | c2534dcdd45d65447028f8402685841be9886392 | |
parent | 7e1cebfeb365c5c0c89913504e7fe472f418587a [diff] |
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>