Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304043
b: refs/heads/master
c: 449a2bf
h: refs/heads/master
i:
  304041: b80976a
  304039: fc8bf62
v: v3
  • Loading branch information
MyungJoo Ham authored and Greg Kroah-Hartman committed Apr 23, 2012
1 parent 6534fbd commit 785951d
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 425 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e971dbc7e716a92e68ad4757193f3c10efdaba9
refs/heads/master: 449a2bf5e881b2a00d42a7c0baa67119c8cb5dce
12 changes: 6 additions & 6 deletions trunk/drivers/extcon/extcon_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ const char *extcon_cable_name[] = {
};

struct class *extcon_class;
#if defined(CONFIG_ANDROID) && !defined(CONFIG_ANDROID_SWITCH)
#if defined(CONFIG_ANDROID)
static struct class_compat *switch_class;
#endif /* CONFIG_ANDROID && !defined(CONFIG_ANDROID_SWITCH) */
#endif /* CONFIG_ANDROID */

static LIST_HEAD(extcon_dev_list);
static DEFINE_MUTEX(extcon_dev_list_lock);
Expand Down Expand Up @@ -532,11 +532,11 @@ static int create_extcon_class(void)
return PTR_ERR(extcon_class);
extcon_class->dev_attrs = extcon_attrs;

#if defined(CONFIG_ANDROID) && !defined(CONFIG_ANDROID_SWITCH)
#if defined(CONFIG_ANDROID)
switch_class = class_compat_register("switch");
if (WARN(!switch_class, "cannot allocate"))
return -ENOMEM;
#endif /* CONFIG_ANDROID && !defined(CONFIG_ANDROID_SWITCH) */
#endif /* CONFIG_ANDROID */
}

return 0;
Expand Down Expand Up @@ -749,11 +749,11 @@ int extcon_dev_register(struct extcon_dev *edev, struct device *dev)
put_device(edev->dev);
goto err_dev;
}
#if defined(CONFIG_ANDROID) && !defined(CONFIG_ANDROID_SWITCH)
#if defined(CONFIG_ANDROID)
if (switch_class)
ret = class_compat_create_link(switch_class, edev->dev,
dev);
#endif /* CONFIG_ANDROID && !defined(CONFIG_ANDROID_SWITCH) */
#endif /* CONFIG_ANDROID */

spin_lock_init(&edev->lock);

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/android/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ config ANDROID_LOW_MEMORY_KILLER
---help---
Register processes to be killed when memory is low

source "drivers/staging/android/switch/Kconfig"

config ANDROID_INTF_ALARM
bool "Android alarm driver"
depends on RTC_CLASS
Expand All @@ -79,7 +77,6 @@ config ANDROID_ALARM_OLDDRV_COMPAT
Provides preprocessor alias to aid compatability with
older out-of-tree drivers that use the Android Alarm
in-kernel API. This will be removed eventually.

endif # if ANDROID

endmenu
1 change: 0 additions & 1 deletion trunk/drivers/staging/android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ obj-$(CONFIG_ANDROID_RAM_CONSOLE) += ram_console.o
obj-$(CONFIG_ANDROID_TIMED_OUTPUT) += timed_output.o
obj-$(CONFIG_ANDROID_TIMED_GPIO) += timed_gpio.o
obj-$(CONFIG_ANDROID_LOW_MEMORY_KILLER) += lowmemorykiller.o
obj-$(CONFIG_ANDROID_SWITCH) += switch/
obj-$(CONFIG_ANDROID_INTF_ALARM) += alarm.o
obj-$(CONFIG_ANDROID_INTF_ALARM_DEV) += alarm-dev.o
11 changes: 0 additions & 11 deletions trunk/drivers/staging/android/switch/Kconfig

This file was deleted.

4 changes: 0 additions & 4 deletions trunk/drivers/staging/android/switch/Makefile

This file was deleted.

53 changes: 0 additions & 53 deletions trunk/drivers/staging/android/switch/switch.h

This file was deleted.

174 changes: 0 additions & 174 deletions trunk/drivers/staging/android/switch/switch_class.c

This file was deleted.

Loading

0 comments on commit 785951d

Please sign in to comment.