Skip to contentSkip to conversation

atmel-mci: fix wrong pointer cast

PATCH Applied Hubert Feurstein 2 participants 2 messages Jun 21, 2011 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel-mci: fix wrong pointer cast

---
 drivers/mci/atmel_mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mci/atmel_mci.c +1 -1
index 980aa24..49a7851 100644
@@ -456,7 +456,7 @@ static int mci_probe(struct device_d *hw_dev)
 	else if (pd->bus_width == 8)
 		host->mci.host_caps |= MMC_MODE_8BIT;
 
-	host->base = (struct atmel_mci_regs *)hw_dev->map_base;
+	host->base = (void __iomem *)hw_dev->map_base;
 	host->hw_dev = hw_dev;
 	hw_dev->priv = host;
 	host->clk = clk_get(hw_dev, "mci_clk");
Signature · 7 lines
1.7.4.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 1 line · Hubert Feurstein

applied to -next

Sascha

Quoted 26 lines
---
 drivers/mci/atmel_mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mci/atmel_mci.c +1 -1
index 980aa24..49a7851 100644
@@ -456,7 +456,7 @@ static int mci_probe(struct device_d *hw_dev)
 	else if (pd->bus_width == 8)
 		host->mci.host_caps |= MMC_MODE_8BIT;
 
-	host->base = (struct atmel_mci_regs *)hw_dev->map_base;
+	host->base = (void __iomem *)hw_dev->map_base;
 	host->hw_dev = hw_dev;
 	hw_dev->priv = host;
 	host->clk = clk_get(hw_dev, "mci_clk");
Signature · 7 lines
1.7.4.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox