aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/ccwgroup.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-12-25 07:38:55 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 07:39:03 -0500
commit98df67b324a2a986987ce29986e44ae9156b6698 (patch)
tree13cd3c37116c115761c54184cdd8e41e164a6c84 /drivers/s390/cio/ccwgroup.c
parent0cd4bd4754d51bdc8f9cd880c29910d0d52337bb (diff)
[S390] struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/ccwgroup.c')
-rw-r--r--drivers/s390/cio/ccwgroup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c
index 3ac2c2019f5e..17fa009d9959 100644
--- a/drivers/s390/cio/ccwgroup.c
+++ b/drivers/s390/cio/ccwgroup.c
@@ -19,6 +19,8 @@
19#include <asm/ccwdev.h> 19#include <asm/ccwdev.h>
20#include <asm/ccwgroup.h> 20#include <asm/ccwgroup.h>
21 21
22#define CCW_BUS_ID_SIZE 20
23
22/* In Linux 2.4, we had a channel device layer called "chandev" 24/* In Linux 2.4, we had a channel device layer called "chandev"
23 * that did all sorts of obscure stuff for networking devices. 25 * that did all sorts of obscure stuff for networking devices.
24 * This is another driver that serves as a replacement for just 26 * This is another driver that serves as a replacement for just
@@ -172,7 +174,7 @@ static int __get_next_bus_id(const char **buf, char *bus_id)
172 len = end - start + 1; 174 len = end - start + 1;
173 end++; 175 end++;
174 } 176 }
175 if (len < BUS_ID_SIZE) { 177 if (len < CCW_BUS_ID_SIZE) {
176 strlcpy(bus_id, start, len); 178 strlcpy(bus_id, start, len);
177 rc = 0; 179 rc = 0;
178 } else 180 } else
@@ -181,7 +183,7 @@ static int __get_next_bus_id(const char **buf, char *bus_id)
181 return rc; 183 return rc;
182} 184}
183 185
184static int __is_valid_bus_id(char bus_id[BUS_ID_SIZE]) 186static int __is_valid_bus_id(char bus_id[CCW_BUS_ID_SIZE])
185{ 187{
186 int cssid, ssid, devno; 188 int cssid, ssid, devno;
187 189
@@ -213,7 +215,7 @@ int ccwgroup_create_from_string(struct device *root, unsigned int creator_id,
213{ 215{
214 struct ccwgroup_device *gdev; 216 struct ccwgroup_device *gdev;
215 int rc, i; 217 int rc, i;
216 char tmp_bus_id[BUS_ID_SIZE]; 218 char tmp_bus_id[CCW_BUS_ID_SIZE];
217 const char *curr_buf; 219 const char *curr_buf;
218 220
219 gdev = kzalloc(sizeof(*gdev) + num_devices * sizeof(gdev->cdev[0]), 221 gdev = kzalloc(sizeof(*gdev) + num_devices * sizeof(gdev->cdev[0]),