Skip to content

Commit

Permalink
Staging: vt6655: fix up U32 conversion
Browse files Browse the repository at this point in the history
Commit 902d241 converted U32 to u32
which you would think would be just fine.  Unfortunatly, it seems that
VIA only builds their code on a 32bit processor (which makes sense if
you think about it), but this doesn't work on x86-64.  So fix up the few
places where this really wanted to be an unsigned long width.

Cc: Charles Clément <caratorn@gmail.com>
Cc: Forest Bond <forest@alittletooquiet.net>,
Cc: Andres More <more.andres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jun 18, 2010
1 parent cf160bc commit afb97d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ typedef struct __device_info {

CHIP_TYPE chip_id;

u32 PortOffset;
unsigned long PortOffset;
DWORD dwIsr;
u32 memaddr;
u32 ioaddr;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev)
pDevice->wstats.discard.nwid = 0;
pDevice->wstats.discard.code = 0;
pDevice->wstats.discard.fragment = 0;
pDevice->wstats.discard.retries = (u32)pDevice->scStatistic.dwTsrErr;
pDevice->wstats.discard.retries = (unsigned long)pDevice->scStatistic.dwTsrErr;
pDevice->wstats.discard.misc = 0;
pDevice->wstats.miss.beacon = 0;

Expand Down

0 comments on commit afb97d9

Please sign in to comment.