diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2012-06-28 15:08:19 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2012-06-29 15:58:05 +0200 |
commit | 7d4fa100b0cc069b2d788e1d9fe086e9e057958e (patch) | |
tree | ef179557da61ec6f2155823bf3e268105e133427 /arch/ia64/oprofile/init.c | |
parent | Input: atmel_mxt_ts - add detail to touchevent debug message (diff) | |
download | linux-7d4fa100b0cc069b2d788e1d9fe086e9e057958e.tar.xz linux-7d4fa100b0cc069b2d788e1d9fe086e9e057958e.zip |
Input: atmel_mxt_ts - refactor when and how object table is freed
The Object Table is freed in three cases:
1) When the driver is being removed.
2) In the error path of mxt_initialize().
3) Just after a firmware update, when a new object table is
about to be read.
For cases 2 & 3, the driver is not immediately unloaded, so this patch
refactors these cases to use a common cleanup function. It also refactors
the mxt_initialize error paths to ensure that this cleanup happens.
Note: mxt_update_fw_store() does not handle errors during mxt_initialize().
A proposed fix for this is in a subsequent patchset.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'arch/ia64/oprofile/init.c')
0 files changed, 0 insertions, 0 deletions