aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/zorro/proc.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2007-05-01 22:33:04 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-04 17:59:08 -0700
commit318175766e7688ba52cdf771d37e98a1e4759f98 (patch)
tree69b6414023426eb7290af6041f130a6119fc0124 /drivers/zorro/proc.c
parentf4d86754f956ab5ea73aa91759a0d89a2f0e3f2a (diff)
downloadkernel_samsung_crespo-318175766e7688ba52cdf771d37e98a1e4759f98.zip
kernel_samsung_crespo-318175766e7688ba52cdf771d37e98a1e4759f98.tar.gz
kernel_samsung_crespo-318175766e7688ba52cdf771d37e98a1e4759f98.tar.bz2
Amiga Zorro bus: kill resource_size_t warnings
Kill resource_size_t warnings by casting resource_size_t to unsigned long when formatting Zorro bus resources, as they are always 32-bit. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/zorro/proc.c')
-rw-r--r--drivers/zorro/proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/zorro/proc.c b/drivers/zorro/proc.c
index b3ce885..2ce4ceb 100644
--- a/drivers/zorro/proc.c
+++ b/drivers/zorro/proc.c
@@ -90,8 +90,9 @@ get_zorro_dev_info(char *buf, char **start, off_t pos, int count)
for (slot = cnt = 0; slot < zorro_num_autocon && count > cnt; slot++) {
struct zorro_dev *z = &zorro_autocon[slot];
len = sprintf(buf, "%02x\t%08x\t%08lx\t%08lx\t%02x\n", slot,
- z->id, zorro_resource_start(z),
- zorro_resource_len(z), z->rom.er_Type);
+ z->id, (unsigned long)zorro_resource_start(z),
+ (unsigned long)zorro_resource_len(z),
+ z->rom.er_Type);
at += len;
if (at >= pos) {
if (!*start) {