Re: [PATCH] regulator: tps65217: fix build error if REGULATOR is notenabled

From: Mark Brown
Date: Wed Jul 18 2012 - 05:44:51 EST


On Wed, Jul 18, 2012 at 12:11:03PM +0530, AnilKumar Ch wrote:
> Fixes below build error if CONFIG_REGULATOR is not enabled.
>
> drivers/built-in.o: In function `tps65217_probe':
> tps65217.c:(.devinit.text+0x13e37): undefined reference to `of_regulator_match'

This isn't a patch to the regulator driver, this is a patch to the MFD.
Normally this would be fixed by making the MFD driver not depend on the
regulator API - why is the MFD driver using the regulator API?

Attachment: signature.asc
Description: Digital signature