[PATCH] [MTD] physmap: only call suspend and resume callbacks if non-NULL

Robert Jarzmik robert.jarzmik at free.fr
Thu Jul 17 06:24:42 EDT 2008


Uwe Kleine-König <Uwe.Kleine-Koenig at digi.com> writes:

> Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig at digi.com>
> ---
>  drivers/mtd/maps/physmap.c |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c
> index 183255f..f04061f 100644
> --- a/drivers/mtd/maps/physmap.c
> +++ b/drivers/mtd/maps/physmap.c
> @@ -202,8 +202,10 @@ static int physmap_flash_suspend(struct platform_device *dev, pm_message_t state
The same patch was submitted to this ML a while ago,
http://lists.infradead.org/pipermail/linux-mtd/2008-June/022023.html

It has not made it's way upstream, though ...

--
Robert



More information about the linux-mtd mailing list