From: Robert Gerlach Date: Tue, 3 Apr 2012 20:34:33 +0000 (+0200) Subject: fujitsu-tablet: remove duplicated code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a5c02c2f63812c265d34ef93e1ea7e5fe2d3a784;p=linux-beck.git fujitsu-tablet: remove duplicated code Signed-off-by: Robert Gerlach Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/fujitsu-tablet.c b/drivers/platform/x86/fujitsu-tablet.c index 580d80a73c3a..4830f5d297e9 100644 --- a/drivers/platform/x86/fujitsu-tablet.c +++ b/drivers/platform/x86/fujitsu-tablet.c @@ -221,9 +221,6 @@ static int __devinit input_fujitsu_setup(struct device *parent, input_set_capability(idev, EV_SW, SW_DOCK); input_set_capability(idev, EV_SW, SW_TABLET_MODE); - input_set_capability(idev, EV_SW, SW_DOCK); - input_set_capability(idev, EV_SW, SW_TABLET_MODE); - error = input_register_device(idev); if (error) { input_free_device(idev);