Remove use of __devinit/__devexit/__devexit_p

CONFIG_HOTPLUG is going away as an option so these are no longer needed.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - remove inlines from mxt_obj_size/mxt_obj_instances

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - improve use of brackets in operations

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - reformat multiline comments as per CodingStyle

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - improve debug messages

Change debug level of various messages and slightly tweak a couple

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: delete non-required instances of include <linux/init.h>

None of these files are actually using any __init type directives
and hence don't need to include <linux/init.h>.  Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Input: atmel_mxt_ts - change EINTR to ERESTARTSYS in completion code

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - improve handling of T6 RESET messages

RESET is a one-off report indicating an already terminated condition. The
device does not generate a further message with a cleared bit.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - return success from interrupt handler during probe

This otherwise can cause the interrupt to be marked spurious if messages are
generated during probe.
Input: atmel_mxt_ts - Use correct printf specifier for size_t
Input: atmel_mxt_ts - use separate pointer before krealloc

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - correctly free buffer on Info CRC error

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - handle errors from regulator_enable

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - return EINVAL if firmware format incorrect

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - use input_dev rather than separate flag

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - remove misleading error in completion code
Input: atmel_mxt_ts - fix return code bug in mem_access_write

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Input: atmel_mxt_ts - enable bootloader completion in mxt_regulator_enable
Input: atmel_mxt_ts - improve regulator handling

It is important to ignore the CHG line immediately after power on, since it is
set as an input.

The wait for completion may be interrupted, in which case it should be
repeated.

Interrupts are required for the completion handling.
Input: atmel_mxt_ts - fix race in update_cfg

Freeing the input device results in the input close function being called,
which calls mxt_stop. Add a flag to stop this happening unnecessarily. Enable
interrupts before using mxt_regulator_enable().