diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-01 00:16:29 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-01 00:16:29 +0200 |
commit | e99e9575bbeba1b7c48e046547cae065ec0071de (patch) | |
tree | c08553c4d06725bd6013a46068df0059c5b49a00 /include/devices.h | |
parent | a13b2d937941f6b525abfcfad96c034f94421188 (diff) | |
parent | 08ab4e1780fa63c88dd5a5ab52f4ff4ed1ee1878 (diff) |
Merge branch 'Makefile' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'include/devices.h')
-rw-r--r-- | include/devices.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/devices.h b/include/devices.h index 2d9e282e3..490016b69 100644 --- a/include/devices.h +++ b/include/devices.h @@ -21,7 +21,7 @@ * MA 02111-1307 USA */ -#include <lists.h> +#include <linux/list.h> #ifndef _DEVICES_H_ #define _DEVICES_H_ @@ -59,6 +59,7 @@ typedef struct { /* Other functions */ void *priv; /* Private extensions */ + struct list_head list; } device_t; /* @@ -82,7 +83,6 @@ typedef struct { /* * VARIABLES */ -extern list_t devlist; extern device_t *stdio_devices[]; extern char *stdio_names[MAX_FILES]; @@ -91,8 +91,10 @@ extern char *stdio_names[MAX_FILES]; */ int device_register (device_t * dev); int devices_init (void); -int devices_done (void); int device_deregister(char *devname); +struct list_head* device_get_list(void); +device_t* device_get_by_name(char* name); + #ifdef CONFIG_LCD int drv_lcd_init (void); #endif |