From: Greg Kroah-Hartman Date: Thu, 11 Dec 2014 22:10:54 +0000 (-0500) Subject: greybus: module: remove obsolete gb_tty pointer X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1770 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1cd9ba1477f25e9137403162092452f176dd30b4;p=karo-tx-linux.git 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 --- diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c index f72e6aef4dc4..c424a5ac25e7 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 facc8ba0fa40..2fdca57398d2 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)