From 1cd9ba1477f25e9137403162092452f176dd30b4 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 11 Dec 2014 17:10:54 -0500 Subject: [PATCH] greybus: module: remove obsolete gb_tty pointer We aren't using this anymore, so remove gb_tty from struct gb_module. Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/module.c | 2 -- drivers/staging/greybus/module.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c index f72e6ae..c424a5a 100644 --- a/drivers/staging/greybus/module.c +++ b/drivers/staging/greybus/module.c @@ -132,8 +132,6 @@ void gb_module_destroy(struct gb_module *gmod) list_del(&gmod->links); spin_unlock_irq(&gb_modules_lock); - /* XXX Do something with gmod->gb_tty */ - gb_interface_destroy(gmod); kfree(gmod->product_string); diff --git a/drivers/staging/greybus/module.h b/drivers/staging/greybus/module.h index facc8ba..2fdca57 100644 --- a/drivers/staging/greybus/module.h +++ b/drivers/staging/greybus/module.h @@ -28,8 +28,6 @@ struct gb_module { u64 unique_id; struct greybus_host_device *hd; - - struct gb_tty *gb_tty; }; #define to_gb_module(d) container_of(d, struct gb_module, dev) -- 2.7.4