int error;
int nbuttons;
int i;
- char *input_name = NULL;
+ const char *input_name = NULL;
int ret = -1;
node = dev->of_node;
}
#ifdef CONFIG_PM
-static int sprd_eic_keys_suspend(struct platform_device *dev, pm_message_t state)
+static __maybe_unused int sprd_eic_keys_suspend(struct platform_device *dev,
+ pm_message_t state)
{
return 0;
}
-static int sprd_eic_keys_resume(struct platform_device *dev)
+static __maybe_unused int sprd_eic_keys_resume(struct platform_device *dev)
{
return 0;
}
static int __init sprd_eic_keys_init(void)
{
+ struct device_node *node;
+
ENTER;
#ifdef HOOK_POWER_KEY
input_hook_init();
#endif
/***************************************************************/
- struct device_node *node = of_find_compatible_node(NULL, NULL, "sprd,sprd-eic-keys");
+ node = of_find_compatible_node(NULL, NULL, "sprd,sprd-eic-keys");
if(node) {
+ struct platform_device *dev;
+
PRINT_INFO("Find the node name:%s\n",node->name);
- struct platform_device *dev = of_find_device_by_node(node);
+ dev = of_find_device_by_node(node);
if(dev)
PRINT_INFO("Find the device name:%s\n",dev->name);
else