diff options
| author | Michael Brown | 2005-04-25 21:26:33 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-25 21:26:33 +0200 |
| commit | 99b857559b2f5f0fcfdeecccf3c581ddd299a0da (patch) | |
| tree | 6a7e283908a1004575d7f1cb49c335924c985ce6 | |
| parent | Added DBG2 (diff) | |
| download | ipxe-99b857559b2f5f0fcfdeecccf3c581ddd299a0da.tar.gz ipxe-99b857559b2f5f0fcfdeecccf3c581ddd299a0da.tar.xz ipxe-99b857559b2f5f0fcfdeecccf3c581ddd299a0da.zip | |
Added "name" field to struct bus_driver
| -rw-r--r-- | src/drivers/net/3c509.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c index cc88c299f..095fb392b 100644 --- a/src/drivers/net/3c509.c +++ b/src/drivers/net/3c509.c @@ -291,7 +291,7 @@ static int t509_check_driver ( struct bus_dev *bus_dev __unused, * Describe a T509 device * */ -static char * t509_describe ( struct bus_dev *bus_dev ) { +static char * t509_describe_device ( struct bus_dev *bus_dev ) { struct t509_device *t509 = ( struct t509_device * ) bus_dev; static char t509_description[] = "T509 00"; @@ -303,7 +303,7 @@ static char * t509_describe ( struct bus_dev *bus_dev ) { * Name a T509 device * */ -static const char * t509_name ( struct bus_dev *bus_dev __unused ) { +static const char * t509_name_device ( struct bus_dev *bus_dev __unused ) { return "T509"; } @@ -312,11 +312,12 @@ static const char * t509_name ( struct bus_dev *bus_dev __unused ) { * */ static struct bus_driver t509_driver __bus_driver = { - .next_location = t509_next_location, - .fill_device = t509_fill_device, - .check_driver = t509_check_driver, - .describe = t509_describe, - .name = t509_name, + .name = "T509", + .next_location = t509_next_location, + .fill_device = t509_fill_device, + .check_driver = t509_check_driver, + .describe_device = t509_describe_device, + .name_device = t509_name_device, }; /* |
