greybus: raw: convert to bundle driver
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 15 Feb 2016 05:17:27 +0000 (10:47 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 15 Feb 2016 22:52:24 +0000 (14:52 -0800)
commit512cc327625651260b2ba885b63cf2cf14ff54d1
tree41ff3a564d2810b1a32bd68fd061586fe1b874ba
parent2554eda5756a37118ab310bd02de78491303ab5f
greybus: raw: convert to bundle driver

Convert the legacy raw protocol driver to a bundle driver.

This also fixes a potential crash should a (malicious) module have sent
an early request before the private data had been initialised.

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