mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
51ec92e295
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>
32 lines
950 B
C
32 lines
950 B
C
/*
|
|
* linux/drivers/mmc/core/bus.h
|
|
*
|
|
* Copyright (C) 2003 Russell King, All Rights Reserved.
|
|
* Copyright 2007 Pierre Ossman
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _MMC_CORE_BUS_H
|
|
#define _MMC_CORE_BUS_H
|
|
|
|
#define MMC_DEV_ATTR(name, fmt, args...) \
|
|
static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \
|
|
{ \
|
|
struct mmc_card *card = container_of(dev, struct mmc_card, dev); \
|
|
return sprintf(buf, fmt, args); \
|
|
} \
|
|
static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)
|
|
|
|
struct mmc_card *mmc_alloc_card(struct mmc_host *host,
|
|
struct device_type *type);
|
|
int mmc_add_card(struct mmc_card *card);
|
|
void mmc_remove_card(struct mmc_card *card);
|
|
|
|
int mmc_register_bus(void);
|
|
void mmc_unregister_bus(void);
|
|
|
|
#endif
|
|
|