greybus: bury some dead code
authorAlex Elder <elder@linaro.org>
Mon, 6 Oct 2014 11:53:07 +0000 (06:53 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 6 Oct 2014 15:56:42 +0000 (08:56 -0700)
One data structure and a few fields in another one are no longer
used, and were not removed when they should have been.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/greybus.h

index 4404d93..f4ca18a 100644 (file)
 
 struct gbuf;
 
-struct gmod_string {
-       u16     length;
-       u8      id;
-       u8      string[0];
-};
-
 typedef void (*gbuf_complete_t)(struct gbuf *gbuf);
 
 struct gbuf {
@@ -194,10 +188,7 @@ struct greybus_host_device {
 
        struct list_head modules;
        struct list_head connections;
-
        struct ida cport_id_map;
-       u16 cport_id_count;     /* How many have been allocated */
-       u16 cport_id_next_free; /* Where to start checking anyway */
 
        /* Private data for the host driver */
        unsigned long hd_priv[0] __attribute__ ((aligned(sizeof(s64))));