greybus: pwm: Drop get_version support
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Aug 2015 02:06:07 +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/pwm.c

index c7f8c633880105bacf3e142dde3026a441cc57cc..5f335895d2300365a23862fe48ef2e1fa4e3db62 100644 (file)
@@ -16,8 +16,6 @@
 
 struct gb_pwm_chip {
        struct gb_connection    *connection;
-       u8                      version_major;
-       u8                      version_minor;
        u8                      pwm_max;        /* max pwm number */
 
        struct pwm_chip         chip;
@@ -27,9 +25,6 @@ struct gb_pwm_chip {
        container_of(chip, struct gb_pwm_chip, chip)
 
 
-/* Define get_version() routine */
-define_get_version(gb_pwm_chip, PWM);
-
 static int gb_pwm_count_operation(struct gb_pwm_chip *pwmc)
 {
        struct gb_pwm_count_response response;
@@ -194,11 +189,6 @@ static int gb_pwm_connection_init(struct gb_connection *connection)
        pwmc->connection = connection;
        connection->private = pwmc;
 
-       /* Check for compatible protocol version */
-       ret = get_version(pwmc);
-       if (ret)
-               goto out_err;
-
        /* Query number of pwms present */
        ret = gb_pwm_count_operation(pwmc);
        if (ret)