Skip to content

Commit

Permalink
i2c-s3c2410: Fix build warning
Browse files Browse the repository at this point in the history
Fix for the following build warning:
  CC      drivers/i2c/busses/i2c-s3c2410.o
  drivers/i2c/busses/i2c-s3c2410.c: In function 's3c24xx_i2c_probe':
  drivers/i2c/busses/i2c-s3c2410.c:839: warning: format '%ld' expects type 'long int', but argument 4 has type 'resource_size_t'

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Arnaud Patard authored and Jean Delvare committed May 22, 2007
1 parent 6a7ce82 commit a1ba158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)

i2c->irq = res;

dev_dbg(&pdev->dev, "irq resource %p (%ld)\n", res, res->start);
dev_dbg(&pdev->dev, "irq resource %p (%lu)\n", res,
(unsigned long)res->start);

ret = i2c_add_adapter(&i2c->adap);
if (ret < 0) {
Expand Down

0 comments on commit a1ba158

Please sign in to comment.