Skip to content

Commit

Permalink
hwmon: (s3c-hwmon) Fix build error
Browse files Browse the repository at this point in the history
The previous patch, commit be4c23c was
from the wrong tree and thus broke the current build which had the
channel configuration name changed.

Fix the following build errors:

drivers/hwmon/s3c-hwmon.c: In function 's3c_hwmon_probe':
drivers/hwmon/s3c-hwmon.c:326: warning: initialization from incompatible pointer type
drivers/hwmon/s3c-hwmon.c:331: error: dereferencing pointer to incomplete type
drivers/hwmon/s3c-hwmon.c:336: error: dereferencing pointer to incomplete type

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Ben Dooks authored and Jean Delvare committed Dec 9, 2009
1 parent 2b876f9 commit 6d905e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/s3c-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static int __devinit s3c_hwmon_probe(struct platform_device *dev)
}

for (i = 0; i < ARRAY_SIZE(pdata->in); i++) {
struct s3c24xx_adc_hwmon_incfg *cfg = pdata->in[i];
struct s3c_hwmon_chcfg *cfg = pdata->in[i];

if (!cfg)
continue;
Expand All @@ -333,7 +333,7 @@ static int __devinit s3c_hwmon_probe(struct platform_device *dev)
"channel %d multiplier too large\n",
i);

if (cfg->divider == 0) {
if (cfg->div == 0) {
dev_err(&dev->dev, "channel %d divider zero\n", i);
continue;
}
Expand Down

0 comments on commit 6d905e6

Please sign in to comment.