diff options
author | Emil Goode <emilgoode@gmail.com> | 2012-05-28 18:54:51 +0200 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-05-29 13:16:45 +0000 |
commit | c895305e806b4346006d3cfba2b432d52268ecd3 (patch) | |
tree | 03079676703d79f2e2e57734ab2e8fe6a0109516 /include/linux/serial167.h | |
parent | ddbcb289ca4b5c124673c076a6941cbca016c1d7 (diff) | |
download | linux-stable-c895305e806b4346006d3cfba2b432d52268ecd3.tar.gz linux-stable-c895305e806b4346006d3cfba2b432d52268ecd3.tar.bz2 linux-stable-c895305e806b4346006d3cfba2b432d52268ecd3.zip |
video: bfin_adv7393fb: Fix cleanup code
This patch fixes the cleanup code of the bfin_adv7393_fb_probe
function.
1) The resources were not freed in the order that we allocated them
so we call dma_free_coherent() before it was allocated.
2) The labels weren't in the right place which also meant that we
freed resources that weren't allocated.
3) We should free gpio_free(P_IDENT(P_PPI0_FS3)) before returning.
4) Lets change the label names into something more meaningful.
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'include/linux/serial167.h')
0 files changed, 0 insertions, 0 deletions