greybus: sdio: tie into gb core properly

This commit is contained in:
Greg Kroah-Hartman 2014-08-30 16:52:18 -07:00
parent 426f29d6be
commit 56f10573be
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ int gb_sdio_probe(struct greybus_device *gdev,
mmc->ops = &gb_sd_ops;
// FIXME - set up size limits we can handle.
greybus_set_drvdata(gdev, host);
gdev->gb_sdio_host = host;
return 0;
}
@ -70,7 +70,7 @@ void gb_sdio_disconnect(struct greybus_device *gdev)
struct mmc_host *mmc;
struct gb_sdio_host *host;
host = greybus_get_drvdata(gdev);
host = gdev->gb_sdio_host;
mmc = host->mmc;
mmc_remove_host(mmc);