greybus: i2c: Drop get_version support
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Aug 2015 02:06:05 +0000 (07:36 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 12 Aug 2015 02:33:05 +0000 (19:33 -0700)
This is done from a common place now, no need to replicate it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/i2c.c

index edb675384a710f8e54c38ef7356ea1fd651d19d0..75b92d68303675c9a690c2e7f0ace5ddc65c97bf 100644 (file)
@@ -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)