summaryrefslogtreecommitdiffstats
path: root/drivers/core
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-20 13:32:32 +0200
committerSimon Glass <sjg@chromium.org>2015-04-22 11:03:15 -0600
commit794d521917eab07651248174a81ba51cd265d9dc (patch)
treeb0903609df84370f45f025168a34110ef4d251a2 /drivers/core
parentf9c370dcdf056f035f18bf77db8a706cea21f9ce (diff)
downloadtalos-obmc-uboot-794d521917eab07651248174a81ba51cd265d9dc.tar.gz
talos-obmc-uboot-794d521917eab07651248174a81ba51cd265d9dc.zip
dm: core: remove type 'static' of function uclass_get_device_tail()
Uclass API provides a few functions for get/find the device. To provide a complete function set of uclass-internal functions, for use by the drivers, the function uclass_get_device_tail() should be non-static. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/uclass.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index c1ebee77f0..7627ad141b 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -263,17 +263,7 @@ static int uclass_find_device_by_of_offset(enum uclass_id id, int node,
return -ENODEV;
}
-/**
- * uclass_get_device_tail() - handle the end of a get_device call
- *
- * This handles returning an error or probing a device as needed.
- *
- * @dev: Device that needs to be probed
- * @ret: Error to return. If non-zero then the device is not probed
- * @devp: Returns the value of 'dev' if there is no error
- * @return ret, if non-zero, else the result of the device_probe() call
- */
-static int uclass_get_device_tail(struct udevice *dev, int ret,
+int uclass_get_device_tail(struct udevice *dev, int ret,
struct udevice **devp)
{
if (ret)
OpenPOWER on IntegriCloud