Linux "gpio-poweroff" won't load
I'm trying to add the linux "gpio-poweroff" function to the distribution package. I've added the following to my device tree:
gpio-poweroff {
compatible = "gpio-poweroff";
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
timeout-ms = <3000>;
};The kernel/device tree compiles OK, but the poweroff function does not work. The logs give the following lines about the poweroff:
[ 1.482136] poweroff-gpio gpio-poweroff: gpio_poweroff_probe: pm_power_off function already registered
[ 1.482174] poweroff-gpio: probe of gpio-poweroff failed with error -16So I guess openSTLinux already has some handler attached? How do I disable this?
