diff options
Diffstat (limited to 'drivers/video/bfin-lq035q1-fb.c')
-rw-r--r-- | drivers/video/bfin-lq035q1-fb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c index c8e1f04941bd..23b6c4b62c78 100644 --- a/drivers/video/bfin-lq035q1-fb.c +++ b/drivers/video/bfin-lq035q1-fb.c | |||
@@ -154,8 +154,10 @@ static int __devinit lq035q1_spidev_probe(struct spi_device *spi) | |||
154 | 154 | ||
155 | ret = lq035q1_control(spi, LQ035_SHUT_CTL, LQ035_ON); | 155 | ret = lq035q1_control(spi, LQ035_SHUT_CTL, LQ035_ON); |
156 | ret |= lq035q1_control(spi, LQ035_DRIVER_OUTPUT_CTL, ctl->mode); | 156 | ret |= lq035q1_control(spi, LQ035_DRIVER_OUTPUT_CTL, ctl->mode); |
157 | if (ret) | 157 | if (ret) { |
158 | kfree(ctl); | ||
158 | return ret; | 159 | return ret; |
160 | } | ||
159 | 161 | ||
160 | spi_set_drvdata(spi, ctl); | 162 | spi_set_drvdata(spi, ctl); |
161 | 163 | ||