Commit 1011b690 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by David S. Miller

ide: ht6560b: 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/ht6560b.c: In function ‘ht6560b_init_dev’:
    drivers/ide/ht6560b.c:318: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 98949a19
...@@ -310,7 +310,7 @@ static void __init ht6560b_init_dev(ide_drive_t *drive) ...@@ -310,7 +310,7 @@ static void __init ht6560b_init_dev(ide_drive_t *drive)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
/* Setting default configurations for drives. */ /* Setting default configurations for drives. */
int t = (HT_CONFIG_DEFAULT << 8) | HT_TIMING_DEFAULT; unsigned long t = (HT_CONFIG_DEFAULT << 8) | HT_TIMING_DEFAULT;
if (hwif->channel) if (hwif->channel)
t |= (HT_SECONDARY_IF << 8); t |= (HT_SECONDARY_IF << 8);
......
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