greybus: legacy: add private driver data
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:28 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commit7d81bafa4ca477a4d364dd229bbbeffb1fa7af4e
treed3bccb6309ad7420321f4f1191ce20cef910e1fc
parentb53e0c9e8dceb170b054f186200b2fe3fb3718f2
greybus: legacy: add private driver data

Allocate private data structure at probe and release at disconnect.

The private data will be used to track the connections managed by the
driver, but for now only holds a count of the number of cports the
bundle has.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/legacy.c