projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mxcmmc : Reset the SDHC hardware if software timeout occurs.
[linux-2.6]
/
drivers
/
spi
/
pxa2xx_spi.c
diff --git
a/drivers/spi/pxa2xx_spi.c
b/drivers/spi/pxa2xx_spi.c
index
885194a
..
3f3c08c
100644
(file)
--- a/
drivers/spi/pxa2xx_spi.c
+++ b/
drivers/spi/pxa2xx_spi.c
@@
-1373,6
+1373,9
@@
static void cleanup(struct spi_device *spi)
{
struct chip_data *chip = spi_get_ctldata(spi);
+ if (!chip)
+ return;
+
if (gpio_is_valid(chip->gpio_cs))
gpio_free(chip->gpio_cs);