greybus: es2: Fix apb_log null pointer exception
authorDavid Lin <dtwlin@google.com>
Mon, 18 Apr 2016 20:11:31 +0000 (13:11 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:41:08 +0000 (10:41 +0900)
commit05a849191f964cf684777fed9ac471d59f2f18ef
tree1f713d549df19c587f933fd5061634ca6146accd
parentb4b1b7eda9fe0d5a399d9095b2e8d5657726538c
greybus: es2: Fix apb_log null pointer exception

Read on apb_log causes null pointer exception due to the missing es2
device pointer passing to the debugfs.

Testing done:
- Enable apb_log and cat it

Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c