mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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>
This commit is contained in:
parent
cde1e86eec
commit
8bbb394e61
|
|
@ -977,7 +977,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
|
|||
|
||||
match = soc_device_match(ep93xx_soc_table);
|
||||
if (match)
|
||||
ap->udma_mask = (unsigned int) match->data;
|
||||
ap->udma_mask = (unsigned long) match->data;
|
||||
else
|
||||
ap->udma_mask = ATA_UDMA2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user