Skip to content

Commit 5b10c23

Browse files
krzkdavem330
authored andcommitted
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: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1011b69 commit 5b10c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ide/qd65xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static void __init qd6500_init_dev(ide_drive_t *drive)
299299
static void __init qd6580_init_dev(ide_drive_t *drive)
300300
{
301301
ide_hwif_t *hwif = drive->hwif;
302-
u16 t1, t2;
302+
unsigned long t1, t2;
303303
u8 base = (hwif->config_data & 0xff00) >> 8;
304304
u8 config = QD_CONFIG(hwif);
305305

0 commit comments

Comments
 (0)