diff options
author | Simon Glass <sjg@chromium.org> | 2018-11-06 15:21:26 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-20 19:14:22 -0700 |
commit | a2a63a35b2ad6da434aaf8426f2902c6c3bc2352 (patch) | |
tree | 2247fcc7750fcc4a1dac03564fc09af26e1817f7 /common/cros_ec.c | |
parent | 566bf3a8698780079196da742c363ca3b627ca31 (diff) | |
download | u-boot-a2a63a35b2ad6da434aaf8426f2902c6c3bc2352.tar.gz |
sandbox: cros_ec: exynos: Drop use of cros_ec_get_error()
This function is really just a call to uclass_get_device() and there is no
reason why the caller cannot do it. Update sandbox and snow accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'common/cros_ec.c')
-rw-r--r-- | common/cros_ec.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/cros_ec.c b/common/cros_ec.c index 4ca15e19d5..e66471ebd1 100644 --- a/common/cros_ec.c +++ b/common/cros_ec.c @@ -25,15 +25,3 @@ struct udevice *board_get_cros_ec_dev(void) } return dev; } - -int cros_ec_get_error(void) -{ - struct udevice *dev; - int ret; - - ret = uclass_get_device(UCLASS_CROS_EC, 0, &dev); - if (ret && ret != -ENODEV) - return ret; - - return 0; -} |