I have a system where the gpio device is attached to a gpio controlled regulator. If not enabled prior to device probe it fails to load the driver. Marking the regulator as always on does not always work as the probe order changes and it's suspectible to race conditions. I'm not aware of another way around this problem. Changes from v1: - Use devm_regulator_get instead of devm_regulator_get_optional. Core returns a dummy regultor that can be used if i doesn't exist. Simplify inital error handling. - Add regulator_disable to probe error path. - Add regulator_disable to remove. Phil Reid (1): gpio: pca954x: Add vcc regulator and enable it drivers/gpio/gpio-pca953x.c | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html