[PATCH/RFC 2/2] mtd: m25p80: Call a platform power method in the driver
Baruch Siach
baruch at tkos.co.il
Sun Aug 28 01:22:15 EDT 2011
Hi Stanimir,
On Thu, Aug 25, 2011 at 04:29:12PM +0300, Stanimir Varbanov wrote:
> On some devices the flash chip could be powered off when m25p driver
> is probed. To avoid erroneous detection the power of the chip must be
> turn on, add a power function in m25p_probe to switch on the power by
> platform data. The power will be turned off at the probe end.
[snip]
> + /* power on device while probing */
> + m25p_power(data, 1);
[snip]
> +out:
> + m25p_power(data, 0);
Shouldn't you power off in m25p_remove() as well?
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the linux-mtd
mailing list