summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/gpio.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-11 07:36:03 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-11 19:33:05 -0700
commit03490fdbe745a6af23527df32e6ceab4b5749a8f (patch)
treeea2dc6fa82e86a6e388bc661d6bc08df70fb560a /drivers/staging/greybus/gpio.c
parent507d75c4f4502cae84b50dcb0c246d67913e9ab5 (diff)
greybus: gpio: 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>
Diffstat (limited to 'drivers/staging/greybus/gpio.c')
-rw-r--r--drivers/staging/greybus/gpio.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index a5db014eaaf2..6a04a1be573a 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -33,8 +33,6 @@ struct gb_gpio_line {
struct gb_gpio_controller {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
u8 line_max; /* max line number */
struct gb_gpio_line *lines;
@@ -51,9 +49,6 @@ struct gb_gpio_controller {
container_of(chip, struct gb_gpio_controller, chip)
#define irq_data_to_gpio_chip(d) (d->domain->host_data)
-/* Define get_version() routine */
-define_get_version(gb_gpio_controller, GPIO);
-
static int gb_gpio_line_count_operation(struct gb_gpio_controller *ggc)
{
struct gb_gpio_line_count_response response;
@@ -476,11 +471,6 @@ static int gb_gpio_controller_setup(struct gb_gpio_controller *ggc)
{
int ret;
- /* First thing we need to do is check the version */
- ret = get_version(ggc);
- if (ret)
- return ret;
-
/* Now find out how many lines there are */
ret = gb_gpio_line_count_operation(ggc);
if (ret)