diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2015-04-20 13:32:32 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-22 11:03:15 -0600 |
commit | 794d521917eab07651248174a81ba51cd265d9dc (patch) | |
tree | b0903609df84370f45f025168a34110ef4d251a2 /drivers | |
parent | f9c370dcdf056f035f18bf77db8a706cea21f9ce (diff) | |
download | u-boot-imx-794d521917eab07651248174a81ba51cd265d9dc.zip u-boot-imx-794d521917eab07651248174a81ba51cd265d9dc.tar.gz u-boot-imx-794d521917eab07651248174a81ba51cd265d9dc.tar.bz2 |
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')
-rw-r--r-- | drivers/core/uclass.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index c1ebee7..7627ad1 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) |