greybus: connection: remove 'struct device' from 'struct gb_connection'
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 16 Oct 2015 23:56:38 +0000 (16:56 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 19 Oct 2015 19:09:10 +0000 (12:09 -0700)
commitb750fa3370485356b5cddda7c0f7fc9bea056fa8
tree64ad54bfb8a89e7ed54d2366aa547c325e8b2fde
parentb6789ee55b99fbc26aa16e4f485397e86498bf51
greybus: connection: remove 'struct device' from 'struct gb_connection'

We don't want this in the driver core, as nothing will be binding to it,
that's the job of a bundle.  So remove the struct device and use a kref
to handle reference counting instead.

Note, I don't think we really need a kref, but it keeps the lifetime the
same as before, and is the simplest change for now.  In the future it
might be easier to just attach all connections to the bundle and clean
them up when the bundle is removed.

Also remove the cport sysfs documentation as it's no longer relevant.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/Documentation/sysfs-bus-greybus
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h