diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c index 317cf46..0d3b245 100644 --- a/drivers/mci/atmel_mci.c +++ b/drivers/mci/atmel_mci.c @@ -474,7 +474,6 @@ static void atmci_info(struct device_d *mci_dev) { struct atmel_mci *host = mci_dev->priv; - struct atmel_mci_platform_data *pd = host->hw_dev->platform_data; printf(" Bus data width: %d bit\n", host->mci.bus_width); @@ -490,7 +489,7 @@ printf("- %u Hz upper limit", host->mci.f_max); printf("\n Card detection support: %s\n", - gpio_is_valid(pd->detect_pin) ? "yes" : "no"); + gpio_is_valid(host->detect_pin) ? "yes" : "no"); } /*