Re: [PATCH] regulator: Add empty devm_regulator_free for !CONFIG_REGULATOR

From: Axel Lin
Date: Sun Jan 29 2012 - 04:43:10 EST


> +static inline void devm_regulator_free(struct regulator *regulator)
> +{
> +}
> +

Oh wait.
I found commit d5ad34f7cb "regulator: Implement devm_regulator_free()"
has declared devm_regulator_free in include/linux/regulator/consumer.h
But it actually implements devm_regulator_put instead of devm_regulator_free.

Mark, I guess what you want is to declare devm_regulator_put instead
of devm_regulator_free
in consumer.h.

Regards,
Axel
>  static inline int regulator_enable(struct regulator *regulator)
>  {
>        return 0;
> --
> 1.7.5.4
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/