From 56f10573be491212dd46ec44789f7a3ffc6e3352 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 30 Aug 2014 16:52:18 -0700 Subject: [PATCH] greybus: sdio: tie into gb core properly --- drivers/staging/greybus/sdio-gb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/sdio-gb.c b/drivers/staging/greybus/sdio-gb.c index 9f7b44d63b67..81eb33d2c887 100644 --- a/drivers/staging/greybus/sdio-gb.c +++ b/drivers/staging/greybus/sdio-gb.c @@ -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); -- 2.39.5