Commit db71a5a2 authored by Linus Torvalds's avatar Linus Torvalds

More EISA/MCA fixups for removal of 'name' member in device struct.

parent db82f17d
...@@ -29,9 +29,6 @@ static int force_probe = EISA_FORCE_PROBE_DEFAULT; ...@@ -29,9 +29,6 @@ static int force_probe = EISA_FORCE_PROBE_DEFAULT;
static struct platform_device eisa_root_dev = { static struct platform_device eisa_root_dev = {
.name = "eisa", .name = "eisa",
.id = 0, .id = 0,
.dev = {
.name = "Virtual EISA Bridge",
},
}; };
static struct eisa_root_device eisa_bus_root = { static struct eisa_root_device eisa_bus_root = {
......
...@@ -39,7 +39,7 @@ static int get_mca_info_helper(struct mca_device *mca_dev, char *page, int len) ...@@ -39,7 +39,7 @@ static int get_mca_info_helper(struct mca_device *mca_dev, char *page, int len)
for(j=0; j<8; j++) for(j=0; j<8; j++)
len += sprintf(page+len, "%02x ", len += sprintf(page+len, "%02x ",
mca_dev ? mca_dev->pos[j] : 0xff); mca_dev ? mca_dev->pos[j] : 0xff);
len += sprintf(page+len, " %s\n", mca_dev ? mca_dev->dev.name : ""); len += sprintf(page+len, " %s\n", mca_dev ? mca_dev->name : "");
return len; return len;
} }
...@@ -108,12 +108,12 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev) ...@@ -108,12 +108,12 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev)
} else if(slot == MCA_MOTHERBOARD) { } else if(slot == MCA_MOTHERBOARD) {
len += sprintf(buf+len, "Motherboard\n"); len += sprintf(buf+len, "Motherboard\n");
} }
if(mca_dev->dev.name[0]) { if (mca_dev->name[0]) {
/* Drivers might register a name without /proc handler... */ /* Drivers might register a name without /proc handler... */
len += sprintf(buf+len, "Adapter Name: %s\n", len += sprintf(buf+len, "Adapter Name: %s\n",
mca_dev->dev.name); mca_dev->name);
} else { } else {
len += sprintf(buf+len, "Adapter Name: Unknown\n"); len += sprintf(buf+len, "Adapter Name: Unknown\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment