diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-03 04:13:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:03:41 -0400 |
commit | 17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8 (patch) | |
tree | 6d0721b3570cc189300f3c7035d12cfa634183f5 /drivers/isdn/hisax/hfc_sx.c | |
parent | 31e7e1a806dab5e8e218b78e1b41887a4f6dfcc0 (diff) |
[PATCH] ISDN warning fixes
Clean up warnings in drivers/isdn by using long not int for the values
where we pass void * and cast to integer types. The code is ok (ok passing
the stuff this way isn't pretty but the code is valid). In all the cases I
checked out the right thing happens anyway but this removes all the
warnings.
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/hfc_sx.c')
-rw-r--r-- | drivers/isdn/hisax/hfc_sx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c index f27c1608a3a7..b7e8e23be337 100644 --- a/drivers/isdn/hisax/hfc_sx.c +++ b/drivers/isdn/hisax/hfc_sx.c | |||
@@ -970,7 +970,7 @@ HFCSX_l1hw(struct PStack *st, int pr, void *arg) | |||
970 | break; | 970 | break; |
971 | case (HW_TESTLOOP | REQUEST): | 971 | case (HW_TESTLOOP | REQUEST): |
972 | spin_lock_irqsave(&cs->lock, flags); | 972 | spin_lock_irqsave(&cs->lock, flags); |
973 | switch ((int) arg) { | 973 | switch ((long) arg) { |
974 | case (1): | 974 | case (1): |
975 | Write_hfc(cs, HFCSX_B1_SSL, 0x80); /* tx slot */ | 975 | Write_hfc(cs, HFCSX_B1_SSL, 0x80); /* tx slot */ |
976 | Write_hfc(cs, HFCSX_B1_RSL, 0x80); /* rx slot */ | 976 | Write_hfc(cs, HFCSX_B1_RSL, 0x80); /* rx slot */ |
@@ -986,7 +986,7 @@ HFCSX_l1hw(struct PStack *st, int pr, void *arg) | |||
986 | default: | 986 | default: |
987 | spin_unlock_irqrestore(&cs->lock, flags); | 987 | spin_unlock_irqrestore(&cs->lock, flags); |
988 | if (cs->debug & L1_DEB_WARN) | 988 | if (cs->debug & L1_DEB_WARN) |
989 | debugl1(cs, "hfcsx_l1hw loop invalid %4x", (int) arg); | 989 | debugl1(cs, "hfcsx_l1hw loop invalid %4lx", arg); |
990 | return; | 990 | return; |
991 | } | 991 | } |
992 | cs->hw.hfcsx.trm |= 0x80; /* enable IOM-loop */ | 992 | cs->hw.hfcsx.trm |= 0x80; /* enable IOM-loop */ |