projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8c73c7
)
sparc: remove driver-core BUS_ID_SIZE
author
Kay Sievers
<
[email protected]
>
Thu, 2 Jul 2009 21:27:22 +0000
(23:27 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 12 Jul 2009 20:02:09 +0000
(13:02 -0700)
The name size limit is gone from the driver-core, the BUS_ID_SIZE
value will be removed.
Cc: David S. Miller <
[email protected]
>
Signed-off-by: Kay Sievers <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
arch/sparc/kernel/vio.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/vio.c
b/arch/sparc/kernel/vio.c
index 753d128ed15885ce6143d3c167859d00a5a3627f..c28c71449a6c72652706e49cf1897c639e2f441b 100644
(file)
--- a/
arch/sparc/kernel/vio.c
+++ b/
arch/sparc/kernel/vio.c
@@
-224,7
+224,12
@@
static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp,
if (!strcmp(type, "domain-services-port"))
bus_id_name = "ds";
- if (strlen(bus_id_name) >= BUS_ID_SIZE - 4) {
+ /*
+ * 20 char is the old driver-core name size limit, which is no more.
+ * This check can probably be removed after review and possible
+ * adaption of the vio users name length handling.
+ */
+ if (strlen(bus_id_name) >= 20 - 4) {
printk(KERN_ERR "VIO: bus_id_name [%s] is too long.\n",
bus_id_name);
return NULL;