greybus: pwm: Drop get_version support

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>
This commit is contained in:
Viresh Kumar 2015-08-11 07:36:07 +05:30 committed by Greg Kroah-Hartman
parent 47d3cfbbad
commit 2e93d02c18

View 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)