aboutsummaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@panicking.kicks-ass.org>2009-02-18 04:48:58 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-18 04:48:58 +0000
commit578d7098659dbe9cc05f74ba97aeda0ba78e847b (patch)
tree5881a33ace2c763c489ab81d21444eb5aeba5639 /drivers/video
parent53967cb8ccaa5c0230f62f4fcf96f950c921992a (diff)
This patch check the probe_completed function pointer.
Signed-off-by: Michael Trimarchi <michael@panicking.kicks-ass.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/display/jbt6k74.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/display/jbt6k74.c b/drivers/video/display/jbt6k74.c
index 9a8ae1b2d14..141e8d27601 100644
--- a/drivers/video/display/jbt6k74.c
+++ b/drivers/video/display/jbt6k74.c
@@ -683,7 +683,8 @@ static int __devinit jbt_probe(struct spi_device *spi)
goto err_sysfs;
}
- (jbt6k74_pdata->probe_completed)(&spi->dev);
+ if (jbt6k74_pdata->probe_completed)
+ (jbt6k74_pdata->probe_completed)(&spi->dev);
return 0;