mmc: use sysfs groups to handle conditional attributes
authorPierre Ossman <drzeus-list@drzeus.cx>
Fri, 21 Mar 2008 22:54:50 +0000 (23:54 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 23 Mar 2008 00:02:20 +0000 (17:02 -0700)
commit51ec92e295d563dd5712d198a7e46c2ae5ccccb2
treefa45408fad483e89b29900b8ca5adf4bb3164467
parent03c086a747d0b242878eb881971ec61c1555869d
mmc: use sysfs groups to handle conditional attributes

Suppressing uevents turned out to be a bad idea as it screws up the
order of events, making user space very confused. Change the system to
use sysfs groups instead.

This is a regression that, for some odd reason, has gone unnoticed for
some time. It confuses hal so that the block devices (which have the
mmc device as a parent) are not registered. End result being that
desktop magic when cards are inserted won't work.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/core/Makefile
drivers/mmc/core/bus.c
drivers/mmc/core/bus.h
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c
drivers/mmc/core/sysfs.c [deleted file]
drivers/mmc/core/sysfs.h [deleted file]