aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/exynos-usb-switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/misc/exynos-usb-switch.c')
-rw-r--r--drivers/usb/misc/exynos-usb-switch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/misc/exynos-usb-switch.c b/drivers/usb/misc/exynos-usb-switch.c
index 519c845..3acb66e 100644
--- a/drivers/usb/misc/exynos-usb-switch.c
+++ b/drivers/usb/misc/exynos-usb-switch.c
@@ -34,7 +34,7 @@
static const char switch_name[] = "exynos_usb_switch";
static struct exynos_usb_switch *our_switch;
-#if defined(CONFIG_BATTERY_SAMSUNG) || defined(CONFIG_BATTERY_SAMSUNG_S2PLUS)
+#if defined(CONFIG_BATTERY_SAMSUNG)
void exynos_usb_cable_connect(void)
{
samsung_cable_check_status(1);
@@ -158,13 +158,13 @@ static int exynos_change_usb_mode(struct exynos_usb_switch *usb_switch,
if (usb_switch->gpio_host_vbus)
set_host_vbus(usb_switch, 0);
-#if defined(CONFIG_BATTERY_SAMSUNG) || defined(CONFIG_BATTERY_SAMSUNG_S2PLUS)
+#if defined(CONFIG_BATTERY_SAMSUNG)
exynos_usb_cable_disconnect();
#endif
clear_bit(USB_HOST_ATTACHED, &usb_switch->connect);
break;
case USB_HOST_ATTACHED:
-#if defined(CONFIG_BATTERY_SAMSUNG) || defined(CONFIG_BATTERY_SAMSUNG_S2PLUS)
+#if defined(CONFIG_BATTERY_SAMSUNG)
exynos_usb_cable_connect();
#endif
if (usb_switch->gpio_host_vbus)