Change gpio-reulator-probe() to use managed resources. Add new managed resource functions as needed to achieve this.
Amend the following functions: devm_kstrdup() gpio_regulator_probe() Add the following functions: devm_kmemdup() devm_gpio_request_array() devm_gpio_free_array() Remove the following functions: gpio_regulator_remove() -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/