Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7071ca1d authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: sdio: Drop get_version support



This is done from a common place now, no need to replicate it.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent f06eda1b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -18,8 +18,6 @@

struct gb_sdio_host {
	struct gb_connection	*connection;
	u8			version_major;
	u8			version_minor;
	struct mmc_host		*mmc;
	struct mmc_request	*mrq;
	struct mutex		lock;	/* lock for this host */
@@ -36,9 +34,6 @@ struct gb_sdio_host {

static struct workqueue_struct *gb_sdio_mrq_workqueue;

/* Define get_version() routine */
define_get_version(gb_sdio_host, SDIO);

#define GB_SDIO_RSP_R1_R5_R6_R7	(GB_SDIO_RSP_PRESENT | GB_SDIO_RSP_CRC | \
				 GB_SDIO_RSP_OPCODE)
#define GB_SDIO_RSP_R3_R4	(GB_SDIO_RSP_PRESENT)
@@ -695,10 +690,6 @@ static int gb_sdio_connection_init(struct gb_connection *connection)
	host->connection = connection;
	connection->private = host;

	ret = get_version(host);
	if (ret < 0)
		goto free_mmc;

	ret = gb_sdio_get_caps(host);
	if (ret < 0)
		goto free_mmc;