static void softreset_push(void *data) { printk(KERN_WARNING "SOFTRESET switch was pushed\n"); /* * In the future you could move this to the release handler, * timing the difference between the 'push' and 'release', and only * doing this ungraceful restart if the button has been down for * a certain amount of time; otherwise doing a graceful restart. */ msp_restart(NULL); }
static void softreset_push(void *data) { printk(KERN_WARNING "SOFTRESET switch was pushed\n"); /* */ msp_restart(NULL); }