• Guenter Roeck's avatar
    power/reset: xgene: Register with kernel restart handler · 8f57f231
    Guenter Roeck authored
    Register with kernel restart handler instead of setting arm_pm_restart directly.
    
    This patch also addresses the following compile warning.
    
    drivers/power/reset/xgene-reboot.c: In function 'xgene_reboot_probe':
    drivers/power/reset/xgene-reboot.c:77:17: warning:
    	assignment from incompatible pointer type [enabled by default]
    
    The warning was due to a mismatch between the type of arm_pm_restart
    and the restart function.
    
    Cc: Loc Ho <lho@apm.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    8f57f231
xgene-reboot.c 2.86 KB