]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/ibmebus: Restore "name" sysfs attribute on ibmebus devices
authorJoachim Fenkes <fenkes@de.ibm.com>
Tue, 5 Aug 2008 14:30:18 +0000 (00:30 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 19 Aug 2008 23:50:21 +0000 (09:50 +1000)
commit4589f1fe570c2c786b72eff146b2f168821882c6
tree2f99262399ccce9ce1f5e0bb8f6b4d8e7d067699
parent7230ced4925b07c259a62b515d8278c6bb1ad98c
powerpc/ibmebus: Restore "name" sysfs attribute on ibmebus devices

Recent of_platform changes made of_bus_type_init() overwrite the bus
type's .dev_attrs list, meaning that the "name" attribute that ibmebus
devices previously had is no longer present.  This is a user-visible
regression which breaks the userspace eHCA support, since the eHCA
userspace driver relies on the name attribute to check for valid
adapters.

This fixes it by providing the "name" attribute in the generic OF
device code instead.  Tested on POWER.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ibmebus.c
drivers/of/device.c