diff options
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r-- | drivers/mfd/sm501.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 6e655b4c6682..2fe64734d8af 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c | |||
@@ -349,11 +349,11 @@ int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) | |||
349 | mode &= 3; /* get current power mode */ | 349 | mode &= 3; /* get current power mode */ |
350 | 350 | ||
351 | if (unit >= ARRAY_SIZE(sm->unit_power)) { | 351 | if (unit >= ARRAY_SIZE(sm->unit_power)) { |
352 | dev_err(dev, "%s: bad unit %d\n", __FUNCTION__, unit); | 352 | dev_err(dev, "%s: bad unit %d\n", __func__, unit); |
353 | goto already; | 353 | goto already; |
354 | } | 354 | } |
355 | 355 | ||
356 | dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __FUNCTION__, unit, | 356 | dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __func__, unit, |
357 | sm->unit_power[unit], to); | 357 | sm->unit_power[unit], to); |
358 | 358 | ||
359 | if (to == 0 && sm->unit_power[unit] == 0) { | 359 | if (to == 0 && sm->unit_power[unit] == 0) { |