Commit 61c80575 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: sdio: use the bundle struct device instead of the connector

We are removing struct device from the gb_connection structure in the
near future.  The gb_bundle structure's struct device should be used as
a replacement.

This patch moves the sdio driver to use the bundle pointer instead of
the connection pointer.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
parent 5fd18b37
...@@ -208,7 +208,7 @@ static int gb_sdio_event_recv(u8 type, struct gb_operation *op) ...@@ -208,7 +208,7 @@ static int gb_sdio_event_recv(u8 type, struct gb_operation *op)
u8 event; u8 event;
if (type != GB_SDIO_TYPE_EVENT) { if (type != GB_SDIO_TYPE_EVENT) {
dev_err(&connection->dev, dev_err(&connection->bundle->dev,
"unsupported unsolicited event: %u\n", type); "unsupported unsolicited event: %u\n", type);
return -EINVAL; return -EINVAL;
} }
...@@ -707,7 +707,7 @@ static int gb_sdio_connection_init(struct gb_connection *connection) ...@@ -707,7 +707,7 @@ static int gb_sdio_connection_init(struct gb_connection *connection)
size_t max_buffer; size_t max_buffer;
int ret = 0; int ret = 0;
mmc = mmc_alloc_host(sizeof(*host), &connection->dev); mmc = mmc_alloc_host(sizeof(*host), &connection->bundle->dev);
if (!mmc) if (!mmc)
return -ENOMEM; return -ENOMEM;
...@@ -739,7 +739,7 @@ static int gb_sdio_connection_init(struct gb_connection *connection) ...@@ -739,7 +739,7 @@ static int gb_sdio_connection_init(struct gb_connection *connection)
mutex_init(&host->lock); mutex_init(&host->lock);
spin_lock_init(&host->xfer); spin_lock_init(&host->xfer);
host->mrq_workqueue = alloc_workqueue("mmc-%s", 0, 1, host->mrq_workqueue = alloc_workqueue("mmc-%s", 0, 1,
dev_name(&connection->dev)); dev_name(&connection->bundle->dev));
if (!host->mrq_workqueue) { if (!host->mrq_workqueue) {
ret = -ENOMEM; ret = -ENOMEM;
goto free_buffer; goto free_buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment