Input: Fix lm8323 probe and module unloading
authorTony Lindgren <tony@atomide.com>
Tue, 13 May 2008 05:53:07 +0000 (22:53 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 15 May 2008 23:51:49 +0000 (16:51 -0700)
commit1b6e46b1e1c83d827887566967ce67cc9ce95899
treebdd4a28f7cf6a80eb096f8f39e87e782eee06c11
parentbfbd53fcc738ff33ebcf91bc3ef25ae637cc4175
Input: Fix lm8323 probe and module unloading

Make module unloading and reloading behave:

- Driver probe could fail if input_register_device fails as
  no error was returned from probe

- Driver interrupt was using unused platform_data field,
  change to use i2c platform data interrupt instead

- Free resources on unloading module

- Mark platform data as __init_or_module

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-n800.c
drivers/input/keyboard/lm8323.c
include/linux/i2c/lm8323.h