From: Viresh Kumar Date: Tue, 11 Aug 2015 02:06:05 +0000 (+0530) Subject: greybus: i2c: Drop get_version support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8886f4a06593fd1849a5076e08488c0ebaf74a3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: i2c: Drop get_version support This is done from a common place now, no need to replicate it. Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c index edb675384a71..75b92d683036 100644 --- a/drivers/staging/greybus/i2c.c +++ b/drivers/staging/greybus/i2c.c @@ -16,8 +16,6 @@ struct gb_i2c_device { struct gb_connection *connection; - u8 version_major; - u8 version_minor; u32 functionality; u16 timeout_msec; @@ -26,9 +24,6 @@ struct gb_i2c_device { struct i2c_adapter adapter; }; -/* Define get_version() routine */ -define_get_version(gb_i2c_device, I2C); - /* * Map Greybus i2c functionality bits into Linux ones */ @@ -277,11 +272,6 @@ static int gb_i2c_device_setup(struct gb_i2c_device *gb_i2c_dev) { int ret; - /* First thing we need to do is check the version */ - ret = get_version(gb_i2c_dev); - if (ret) - return ret; - /* Assume the functionality never changes, just get it once */ ret = gb_i2c_functionality_operation(gb_i2c_dev); if (ret)