diff options
Diffstat (limited to 'drivers/macintosh/therm_pm72.c')
-rw-r--r-- | drivers/macintosh/therm_pm72.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index 82336a5a5474..feb4e2413858 100644 --- a/drivers/macintosh/therm_pm72.c +++ b/drivers/macintosh/therm_pm72.c | |||
@@ -685,7 +685,7 @@ static void fetch_cpu_pumps_minmax(void) | |||
685 | * the input twice... I accept patches :) | 685 | * the input twice... I accept patches :) |
686 | */ | 686 | */ |
687 | #define BUILD_SHOW_FUNC_FIX(name, data) \ | 687 | #define BUILD_SHOW_FUNC_FIX(name, data) \ |
688 | static ssize_t show_##name(struct device *dev, char *buf) \ | 688 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
689 | { \ | 689 | { \ |
690 | ssize_t r; \ | 690 | ssize_t r; \ |
691 | down(&driver_lock); \ | 691 | down(&driver_lock); \ |
@@ -694,7 +694,7 @@ static ssize_t show_##name(struct device *dev, char *buf) \ | |||
694 | return r; \ | 694 | return r; \ |
695 | } | 695 | } |
696 | #define BUILD_SHOW_FUNC_INT(name, data) \ | 696 | #define BUILD_SHOW_FUNC_INT(name, data) \ |
697 | static ssize_t show_##name(struct device *dev, char *buf) \ | 697 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
698 | { \ | 698 | { \ |
699 | return sprintf(buf, "%d", data); \ | 699 | return sprintf(buf, "%d", data); \ |
700 | } | 700 | } |