diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2012-06-28 09:08:19 -0400 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2012-06-29 09:58:05 -0400 |
commit | 7d4fa100b0cc069b2d788e1d9fe086e9e057958e (patch) | |
tree | ef179557da61ec6f2155823bf3e268105e133427 /drivers/xen/sys-hypervisor.c | |
parent | b2e459b81b33ca17052de03b1315d8511d769507 (diff) |
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 'drivers/xen/sys-hypervisor.c')
0 files changed, 0 insertions, 0 deletions