Commit 3da04cda authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix 64bit cleanness in intel Piix driver

parent 59e2554f
...@@ -96,7 +96,7 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count) ...@@ -96,7 +96,7 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count)
for (i = 0; i < n_piix_devs; i++) { for (i = 0; i < n_piix_devs; i++) {
struct pci_dev *dev = piix_devs[i]; struct pci_dev *dev = piix_devs[i];
u32 bibma = pci_resource_start(dev, 4); unsigned long bibma = pci_resource_start(dev, 4);
u16 reg40 = 0, psitre = 0, reg42 = 0, ssitre = 0; u16 reg40 = 0, psitre = 0, reg42 = 0, ssitre = 0;
u8 c0 = 0, c1 = 0, reg54 = 0, reg55 = 0; u8 c0 = 0, c1 = 0, reg54 = 0, reg55 = 0;
u8 reg44 = 0, reg48 = 0, reg4a = 0, reg4b = 0; u8 reg44 = 0, reg48 = 0, reg4a = 0, reg4b = 0;
...@@ -155,8 +155,8 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count) ...@@ -155,8 +155,8 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count)
* at that point bibma+0x2 et bibma+0xa are byte registers * at that point bibma+0x2 et bibma+0xa are byte registers
* to investigate: * to investigate:
*/ */
c0 = inb((unsigned short)bibma + 0x02); c0 = inb(bibma + 0x02);
c1 = inb((unsigned short)bibma + 0x0a); c1 = inb(bibma + 0x0a);
p += sprintf(p, "--------------- Primary Channel " p += sprintf(p, "--------------- Primary Channel "
"---------------- Secondary Channel " "---------------- Secondary Channel "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment