Re: [PATCH] regulator: set max8998->dev to &pdev->dev.

From: Mark Brown
Date: Fri Aug 27 2010 - 05:30:35 EST


On Fri, Aug 27, 2010 at 04:37:34PM +0800, Axel Lin wrote:
> max8998->dev is NULL in current implementation, set it to &pdev->dev.
>
> regulator_register() still return success if max8998->dev is NULL,
> but rdev->dev.parent will be set to NULL which is incorrect.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
--
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/