Hallo Werner,

* Werner Almesberger <[email protected]> [26-03-09 01:08]:
> From: Werner Almesberger <[email protected]>
> To: [email protected]
> Cc: [email protected],
>       Tim Niemeyer <[email protected]>
> Subject: Re: [PATCH] This patch brings suspend/resume back to GTA01
> Date: Thu, 26 Mar 2009 01:08:04 -0300
> 
> [email protected] wrote:
> > GTA01 doesn't have *fiq() functions
> 
> Hmm, is the problem that "pdata" is NULL and you oops ?
> If yes, why not simply test for pdata being NULL ?
Ok, i build a new patch ... unfortunatly is my git knowledge not so good, so i
hope you can apply this new patch.


Tim Niemeyer
From 6aa93e7502bd8ce301e49ea5ce5472a5b4753af8 Mon Sep 17 00:00:00 2001
From: Tim Niemeyer <[email protected]>
Date: Fri, 27 Mar 2009 17:58:05 +0100
Subject: [PATCH] This brings suspend/resume back on GTA01

This time with if(..) instead of #ifdef
---
 drivers/leds/leds-neo1973-vibrator.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/leds-neo1973-vibrator.c b/drivers/leds/leds-neo1973-vibrator.c
index e25ca48..8bfb117 100644
--- a/drivers/leds/leds-neo1973-vibrator.c
+++ b/drivers/leds/leds-neo1973-vibrator.c
@@ -129,7 +129,8 @@ static int neo1973_vib_init_hw(struct neo1973_vib_priv *vp)
 static int neo1973_vib_suspend(struct platform_device *dev, pm_message_t state)
 {
 	led_classdev_suspend(&neo1973_vib_led.cdev);
-	neo1973_vib_priv.pdata->disable_fiq();
+	if (neo1973_vib_priv.pdata)
+		neo1973_vib_priv.pdata->disable_fiq();
 	return 0;
 }
 
@@ -141,7 +142,8 @@ static int neo1973_vib_resume(struct platform_device *dev)
 		neo1973_vib_init_hw(vp);
 
 	led_classdev_resume(&neo1973_vib_led.cdev);
-	neo1973_vib_priv.pdata->enable_fiq();
+	if (neo1973_vib_priv.pdata)
+		neo1973_vib_priv.pdata->enable_fiq();
 
 	return 0;
 }
-- 
1.5.6.5

Attachment: signature.asc
Description: Digital signature

Reply via email to