]> err.no Git - linux-2.6/blobdiff - drivers/mmc/mmc_sysfs.c
[ACPI] S3 resume: avoid kmalloc() might_sleep oops symptom
[linux-2.6] / drivers / mmc / mmc_sysfs.c
index 29a56e9cd5b3a5ad35e879845930143475130c4e..5556cd3b555917768f7fc4d341e4b8c93f63db80 100644 (file)
@@ -22,7 +22,7 @@
 #define to_mmc_driver(d)       container_of(d, struct mmc_driver, drv)
 
 #define MMC_ATTR(name, fmt, args...)                                   \
-static ssize_t mmc_##name##_show (struct device *dev, char *buf)       \
+static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf)        \
 {                                                                      \
        struct mmc_card *card = dev_to_mmc_card(dev);                   \
        return sprintf(buf, fmt, args);                                 \