PATCH: Fix 32bitism in SDHCI

Alan Cox
2006-06-15T15:17:17Z

The data field is ulong, pointers fit in ulongs. Casting them to int is
bad for 64bit systems.

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c linux-2.6.17-rc6/drivers/mmc/sdhci.c
--- linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c 2006-06-06 14:01:11.000000000 +0100
+++ linux-2.6.17-rc6/drivers/mmc/sdhci.c 2006-06-15 11:59:57.580510280 +0100
@@ -1073,7 +1073,7 @@
tasklet_init(&host->finish_tasklet,
sdhci_tasklet_finish, (unsigned long)host);

- setup_timer(&host->timer, sdhci_timeout_timer, (int)host);
+ setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host);

ret = request_irq(host->irq, sdhci_irq, SA_SHIRQ,
host->slot_descr, host);