diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-06-10 21:20:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-07-21 16:41:46 +0200 |
commit | 4b34297cfbf8b6d88a602898f0db05b5bf5bf8fd (patch) | |
tree | 8b414f0b816d7faea139e8e6de2c3aaa0b8207a2 /Documentation | |
parent | 6459b135d9f1cc1aee8d3564a6097ae21e30b2ac (diff) | |
download | barebox-4b34297cfbf8b6d88a602898f0db05b5bf5bf8fd.tar.gz barebox-4b34297cfbf8b6d88a602898f0db05b5bf5bf8fd.tar.xz |
Get rid of remaining DEVICE_TYPE_* usage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devices_drivers.txt | 9 | ||||
-rw-r--r-- | Documentation/porting.txt | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/Documentation/devices_drivers.txt b/Documentation/devices_drivers.txt index 5a95c91732..06e788de86 100644 --- a/Documentation/devices_drivers.txt +++ b/Documentation/devices_drivers.txt @@ -26,17 +26,10 @@ char id[MAX_DRIVER_NAME]; The id is used to uniquely identify a device in the system. The id will show up under /dev/ as the device's name. Usually this is something like eth0 or nor0. -unsigned long type; - -This describes the type (or class) of this device. Have a look at include/driver.h -to see a list of known device types. Currently this includes DEVICE_TYPE_ETHER, -DEVICE_TYPE_CONSOLE and others. - void *type_data; Devices of a particular class normaly need to store more information than struct -device holds. This entry holds a pointer to the type specific struct, so a -a device of type DEVICE_TYPE_ETHER sets this to a struct eth_device. +device holds. This entry holds a pointer to the type specific struct. void *priv; diff --git a/Documentation/porting.txt b/Documentation/porting.txt index 93532a80c8..d59925e5f6 100644 --- a/Documentation/porting.txt +++ b/Documentation/porting.txt @@ -37,7 +37,6 @@ static struct device_d scb9328_serial_device = { .id = "cs0", .map_base = IMX_UART1_BASE, .size = 4096, - .type = DEVICE_TYPE_CONSOLE, }; static int scb9328_console_init(void) @@ -61,7 +60,6 @@ console_initcall(scb9328_console_init); Serial drivers - Declare all functions static. - - register a device of type DEVICE_TYPE_CONSOLE - in your probe function fill in a struct console_device and register it with console_register() |