]> git.baikalelectronics.ru Git - kernel.git/commit
Input: mc13783-pwrbutton - convert to use module_platform_driver()
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Dec 2011 07:43:32 +0000 (23:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 12 Dec 2011 08:02:51 +0000 (00:02 -0800)
commit4e97a2cbde50181a64c53a76f6953c0280929767
tree4590025d96904e724eb43fa92fcf17baad8f6cfd
parent5e8c7f4c6ba5864de9707a76c803fb78969108bd
Input: mc13783-pwrbutton - convert to use module_platform_driver()

This patch converts mc13783-pwrbutton to use the module_platform_driver()
macro which makes the code smaller and a bit simpler.

Also staticise mc13783_pwrbutton_driver which is not used outside
this driver so no need to make the symbol global.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/mc13783-pwrbutton.c