From a2a63a35b2ad6da434aaf8426f2902c6c3bc2352 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 6 Nov 2018 15:21:26 -0700 Subject: 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 Acked-by: Minkyu Kang --- common/cros_ec.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'common') diff --git a/common/cros_ec.c b/common/cros_ec.c index 4ca15e1..e66471e 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; -} -- cgit v1.1