staging: panel: register driver after checking device
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 10 Feb 2015 11:56:02 +0000 (17:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:31:57 +0000 (16:31 -0800)
commitf43de77c9dddba86284f7cb58c5e257ebed843a3
treea5a25b30840b81c0579413a5ccac27da9d04b43f
parent9ab81fb7a968c81d16fa00584487d7f1e7211887
staging: panel: register driver after checking device

register the driver only if lcd or keypad has been enabled and if
both are disabled then just exit.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c