static const struct attribute_group sm5504_muic_group = {
.attrs = sm5504_muic_attributes,
};
-static int sec_get_usb_vbus(unsigned int *level)
+static __maybe_unused int sec_get_usb_vbus(unsigned int *level)
{
if (current_status->vbus_status) {
RTINFO("set VBUS_HIGH\n");
{
struct sm5504_platform_data *pdata;
struct sm5504_chip *chip;
-#ifdef CONFIG_MUIC_SUPPORT_FACTORY
- struct device *switch_dev;
-#endif
int ret;
+
RTINFO("SiliconMitus SM5504 driver %s probing...\n", SM5504_DRV_VER);
if(client->dev.of_node) {
pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL);
#endif
#ifdef CONFIG_SAMSUNG_MUIC
- switch_dev = device_create(sec_class, NULL, 0, NULL, "switch");
- chip->switch_dev = switch_dev;
+ chip->switch_dev = device_create(sec_class, NULL, 0, NULL, "switch");
ret = sysfs_create_group(&switch_dev->kobj, &sm5504_muic_group);
#elif defined(CONFIG_MUIC_SUPPORT_FACTORY) && !defined(CONFIG_USB_SPRD_SWITCH)
if(switch_device) {