aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/macio_asic.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2005-07-06 15:26:27 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 15:55:20 -0400
commitb5bf5b6786ccfc9e0c8801291f463d92c8e0b423 (patch)
tree2b398307b9d647f8f8902093f66ec20348727567 /drivers/macintosh/macio_asic.c
parent5e6557722e69840506eb8bc5a1edcdb4e447a917 (diff)
[PATCH] openfirmware: add sysfs nodes for open firmware devices
This adds sysfs nodes that the hotplug userspace can use to load the appropriate modules. In order for hotplug to work with macio devices, patches to module-init-tools and hotplug must be applied. Those patches are available at: ftp://ftp.suse.com/pub/people/jeffm/linux/macio-hotplug/ Changes: The previous versions were built on 2.6.12. 2.6.13-rcX introduced a device_attribute parameter to the show functions. Since that parameter was treated as the output buffer, memory corruption would result, causing Oopsen very quickly. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/macintosh/macio_asic.c')
-rw-r--r--drivers/macintosh/macio_asic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 37b18ee08a2d..7fa369cfcceb 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -126,11 +126,14 @@ static int macio_device_resume(struct device * dev)
126 return 0; 126 return 0;
127} 127}
128 128
129extern struct device_attribute macio_dev_attrs[];
130
129struct bus_type macio_bus_type = { 131struct bus_type macio_bus_type = {
130 .name = "macio", 132 .name = "macio",
131 .match = macio_bus_match, 133 .match = macio_bus_match,
132 .suspend = macio_device_suspend, 134 .suspend = macio_device_suspend,
133 .resume = macio_device_resume, 135 .resume = macio_device_resume,
136 .dev_attrs = macio_dev_attrs,
134}; 137};
135 138
136static int __init macio_bus_driver_init(void) 139static int __init macio_bus_driver_init(void)