Commit 5b10c23e authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by David S. Miller

ide: qd65xx: Fix cast to pointer from integer of different size

Integer passed as pointer to drvdata should be cast to unsigned long to
avoid warning (compile testing on alpha architecture):

    drivers/ide/qd65xx.c: In function ‘qd6580_init_dev’:
    drivers/ide/qd65xx.c:312:27: warning:
        cast to pointer from integer of different size [-Wint-to-pointer-cast]
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1011b690
...@@ -299,7 +299,7 @@ static void __init qd6500_init_dev(ide_drive_t *drive) ...@@ -299,7 +299,7 @@ static void __init qd6500_init_dev(ide_drive_t *drive)
static void __init qd6580_init_dev(ide_drive_t *drive) static void __init qd6580_init_dev(ide_drive_t *drive)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
u16 t1, t2; unsigned long t1, t2;
u8 base = (hwif->config_data & 0xff00) >> 8; u8 base = (hwif->config_data & 0xff00) >> 8;
u8 config = QD_CONFIG(hwif); u8 config = QD_CONFIG(hwif);
......
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