summaryrefslogtreecommitdiff
path: root/include/devices.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-09-01 17:11:26 +0200
committerWolfgang Denk <wd@denx.de>2008-09-02 01:28:18 +0200
commit628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51 (patch)
treeb7fed06affccfa97aae1344c6f4f5026440513fb /include/devices.h
parente99e9575bbeba1b7c48e046547cae065ec0071de (diff)
downloadu-boot-imx-628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51.zip
u-boot-imx-628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51.tar.gz
u-boot-imx-628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51.tar.bz2
device: make device_register() clone the device
This is expected by the callers, but this fact was hidden well within the old list implementation. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/devices.h')
-rw-r--r--include/devices.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/devices.h b/include/devices.h
index 490016b..6b78d58 100644
--- a/include/devices.h
+++ b/include/devices.h
@@ -94,6 +94,7 @@ int devices_init (void);
int device_deregister(char *devname);
struct list_head* device_get_list(void);
device_t* device_get_by_name(char* name);
+device_t* device_clone(device_t *dev);
#ifdef CONFIG_LCD
int drv_lcd_init (void);