From 628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 1 Sep 2008 17:11:26 +0200 Subject: 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 --- include/devices.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/devices.h') diff --git a/include/devices.h b/include/devices.h index 490016b69..6b78d5888 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); -- cgit v1.2.3