summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arche-platform.c
diff options
context:
space:
mode:
authorJohan Hovold2017-05-16 10:01:39 +0200
committerGreg Kroah-Hartman2017-05-16 13:39:16 +0200
commit2eccd4aa19fc88e48e4be4d86f271a266d95e6d0 (patch)
treeb233fa5168d49c54b9e63ae0e6f93df662eb1b81 /drivers/staging/greybus/arche-platform.c
parentstaging: greybus: arche: remove timesync remains (diff)
downloadkernel-qcow2-linux-2eccd4aa19fc88e48e4be4d86f271a266d95e6d0.tar.gz
kernel-qcow2-linux-2eccd4aa19fc88e48e4be4d86f271a266d95e6d0.tar.xz
kernel-qcow2-linux-2eccd4aa19fc88e48e4be4d86f271a266d95e6d0.zip
staging: greybus: enable compile testing of arche driver
Add Arche platform-driver config option and allow the driver to be compile tested also without the out-of-tree usb3613 driver. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus/arche-platform.c')
-rw-r--r--drivers/staging/greybus/arche-platform.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
index 9e644bfe2ae0..5bce5e039596 100644
--- a/drivers/staging/greybus/arche-platform.c
+++ b/drivers/staging/greybus/arche-platform.c
@@ -24,7 +24,14 @@
#include "arche_platform.h"
#include "greybus.h"
+#if IS_ENABLED(CONFIG_USB_HSIC_USB3613)
#include <linux/usb/usb3613.h>
+#else
+static inline int usb3613_hub_mode_ctrl(bool unused)
+{
+ return 0;
+}
+#endif
#define WD_COLDBOOT_PULSE_WIDTH_MS 30