Skip to content

Commit 8bbb394

Browse files
nehebfloatious
authored andcommitted
ata: pata_ep93xx: use unsigned long for data
An int is being encoded as a void pointer but that breaks on 64-bit systems as the type needs to match pointer size. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent cde1e86 commit 8bbb394

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/pata_ep93xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
977977

978978
match = soc_device_match(ep93xx_soc_table);
979979
if (match)
980-
ap->udma_mask = (unsigned int) match->data;
980+
ap->udma_mask = (unsigned long) match->data;
981981
else
982982
ap->udma_mask = ATA_UDMA2;
983983
}

0 commit comments

Comments
 (0)