From: Daniel Kurtz Date: Thu, 28 Jun 2012 13:08:19 +0000 (+0800) Subject: Input: atmel_mxt_ts - refactor when and how object table is freed X-Git-Tag: v3.6-rc1~95^2^2~13^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d4fa100b0cc069b2d788e1d9fe086e9e057958e;p=pandora-kernel.git 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 Signed-off-by: Henrik Rydberg --- Reading git-diff-tree failed