usb: android: HTC: Old HTC RIL (8x60) needs to read some values in android_usb sysfs, add dummy ones so it doesnt crash.
diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c
index b3d0673..687d2b7 100644
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -2565,6 +2565,32 @@
 	kfree(conf);
 }
 
+#if defined(CONFIG_MACH_HTC) && defined(CONFIG_ARCH_MSM8X60)
+static ssize_t show_usb_function_switch(struct device *dev,
+		struct device_attribute *attr, char *buf)
+{
+  return sprintf(buf, "ether:disable\nrndis:disable\n");
+}
+
+static ssize_t store_usb_function_switch(struct device *dev,
+		struct device_attribute *attr, const char *buf, size_t count)
+{
+        return 0;
+}
+
+static DEVICE_ATTR(usb_function_switch, 0664,
+		show_usb_function_switch, store_usb_function_switch);
+
+static struct attribute *android_htc_usb_attributes[] = {
+	&dev_attr_usb_function_switch.attr,
+	NULL
+};
+
+static const struct attribute_group android_usb_attr_group = {
+	.attrs = android_htc_usb_attributes,
+};
+#endif
+
 static int __devinit android_probe(struct platform_device *pdev)
 {
 	struct android_usb_platform_data *pdata = pdev->dev.platform_data;
@@ -2577,6 +2603,11 @@
 			return PTR_ERR(android_class);
 	}
 
+#if defined(CONFIG_MACH_HTC) && defined(CONFIG_ARCH_MSM8X60)
+	if (sysfs_create_group(&pdev->dev.kobj, &android_usb_attr_group))
+		pr_err("%s: fail to create sysfs\n", __func__);
+#endif
+
 	android_dev = kzalloc(sizeof(*android_dev), GFP_KERNEL);
 	if (!android_dev) {
 		pr_err("%s(): Failed to alloc memory for android_dev\n",