]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: uart: Kill reference_count hack
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 May 2016 09:02:38 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 May 2016 20:38:57 +0000 (13:38 -0700)
commit73d292d8381d9c384796c876ba752ccd18a09d1f
treee24a02cde68654806c9add68ff72a0f0229a98c5
parentceadf9def1329c856fe94ca8aecc9ff7866e827b
greybus: uart: Kill reference_count hack

This was done long back and was probably the best bet then, but it looks
really bad to have it this way now.

Kill the hack and implement proper driver init()/exit() routines to do
the same thing.

Tested using gbsim by hotplugging uart manifest and removing it later.
Also tried removing the gb-phy module to test the exit path properly.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c