[MMC] Add MMC class devices

Create a mmc_host class to allow enumeration of MMC host controllers
even though they have no card(s) inserted.

Patch based on work by Pierre Ossman.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2005-08-19 09:41:24 +01:00 committed by Russell King
parent d366b64363
commit 00b137cfda
4 changed files with 87 additions and 14 deletions

View file

@ -63,6 +63,7 @@ struct device;
struct mmc_host {
struct device *dev;
struct class_device class_dev;
struct mmc_host_ops *ops;
unsigned int f_min;
unsigned int f_max;