From: Viresh Kumar Date: Tue, 11 Aug 2015 02:06:07 +0000 (+0530) Subject: greybus: pwm: Drop get_version support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e93d02c18ce39430a0cf0c591f067067bad2181;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: pwm: 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/pwm.c b/drivers/staging/greybus/pwm.c index c7f8c6338801..5f335895d230 100644 --- a/drivers/staging/greybus/pwm.c +++ b/drivers/staging/greybus/pwm.c @@ -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)