diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-04-28 07:01:16 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-06-15 06:18:23 -0400 |
commit | 7c314991d7d7ad4edf96e8322bcb30e8452957b7 (patch) | |
tree | e6ff0860de3f408f9f5ce960cf314e95cb05ae74 /drivers/regulator/userspace-consumer.c | |
parent | 1d98cccf7f8b944ba4ea56d14bbb7c2eeee59bfe (diff) |
regulator: build fix for powerpc - renamed show_state
This patch fixes the follwing build failure on powerpc:-
> Today's linux-next build (powerpc allyesconfig) failed like this:
>
> drivers/regulator/userspace-consumer.c:43: error: conflicting types
> for 'show_state'
> include/linux/sched.h:273: note: previous definition of 'show_state'
> was here
>
> Caused by commit 5defa2bce704ca4151cfe24e4297aa7797cafd22 ("regulator:
> add userspace-consumer driver") which I have reverted for today.
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/userspace-consumer.c')
-rw-r--r-- | drivers/regulator/userspace-consumer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/regulator/userspace-consumer.c b/drivers/regulator/userspace-consumer.c index 71fcf9df00f6..06d2fa96a8b4 100644 --- a/drivers/regulator/userspace-consumer.c +++ b/drivers/regulator/userspace-consumer.c | |||
@@ -32,7 +32,7 @@ struct userspace_consumer_data { | |||
32 | struct regulator_bulk_data *supplies; | 32 | struct regulator_bulk_data *supplies; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | static ssize_t show_name(struct device *dev, | 35 | static ssize_t reg_show_name(struct device *dev, |
36 | struct device_attribute *attr, char *buf) | 36 | struct device_attribute *attr, char *buf) |
37 | { | 37 | { |
38 | struct userspace_consumer_data *data = dev_get_drvdata(dev); | 38 | struct userspace_consumer_data *data = dev_get_drvdata(dev); |
@@ -40,7 +40,7 @@ static ssize_t show_name(struct device *dev, | |||
40 | return sprintf(buf, "%s\n", data->name); | 40 | return sprintf(buf, "%s\n", data->name); |
41 | } | 41 | } |
42 | 42 | ||
43 | static ssize_t show_state(struct device *dev, | 43 | static ssize_t reg_show_state(struct device *dev, |
44 | struct device_attribute *attr, char *buf) | 44 | struct device_attribute *attr, char *buf) |
45 | { | 45 | { |
46 | struct userspace_consumer_data *data = dev_get_drvdata(dev); | 46 | struct userspace_consumer_data *data = dev_get_drvdata(dev); |
@@ -51,7 +51,7 @@ static ssize_t show_state(struct device *dev, | |||
51 | return sprintf(buf, "disabled\n"); | 51 | return sprintf(buf, "disabled\n"); |
52 | } | 52 | } |
53 | 53 | ||
54 | static ssize_t set_state(struct device *dev, struct device_attribute *attr, | 54 | static ssize_t reg_set_state(struct device *dev, struct device_attribute *attr, |
55 | const char *buf, size_t count) | 55 | const char *buf, size_t count) |
56 | { | 56 | { |
57 | struct userspace_consumer_data *data = dev_get_drvdata(dev); | 57 | struct userspace_consumer_data *data = dev_get_drvdata(dev); |
@@ -90,8 +90,8 @@ static ssize_t set_state(struct device *dev, struct device_attribute *attr, | |||
90 | return count; | 90 | return count; |
91 | } | 91 | } |
92 | 92 | ||
93 | static DEVICE_ATTR(name, 0444, show_name, NULL); | 93 | static DEVICE_ATTR(name, 0444, reg_show_name, NULL); |
94 | static DEVICE_ATTR(state, 0644, show_state, set_state); | 94 | static DEVICE_ATTR(state, 0644, reg_show_state, reg_set_state); |
95 | 95 | ||
96 | static struct device_attribute *attributes[] = { | 96 | static struct device_attribute *attributes[] = { |
97 | &dev_attr_name, | 97 | &dev_attr_name, |