From patchwork Wed Jan 9 06:43:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13937 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 81CD423F7F for ; Wed, 9 Jan 2013 06:52:07 +0000 (UTC) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by fiordland.canonical.com (Postfix) with ESMTP id 29930A18ADD for ; Wed, 9 Jan 2013 06:52:07 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so1242182vbb.35 for ; Tue, 08 Jan 2013 22:52:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=iwK93xA6l9f02FonLHjfSwv/GEHa27Pcrpc9xToQM8I=; b=DJIgrjw4XHlP7aU2tj+ecJoQw3Q/jBGGlK6rPjq0i4IbVbQpZVqMbPplD+/gvUYsKL w6CAY+nFsVxKjmNpu9Imrb5Mg5NqdF+L452aKR1KCSKplkkW11jCggT1Cn7ARVOC1K0E m9gB8D+ciA2Ng/QDGWYcnkMAV50hlOwwgMjDA+qL9yLYNBTv0Si1vBaj8LpkgbnV3w/2 8k1zVT1mAT44tLyoRpIbs5xjSGo/5mnoVEomtztGaup1vcoss7GlqSLtCLw7sVib0OeE XBzVf8b/DaZ2jEpPlP9z7t+72TBZc4pGu8C1wIp6s1BGSOTEAuUYjylT9YRDtsCdPMuK KfSw== X-Received: by 10.52.88.168 with SMTP id bh8mr75535528vdb.51.1357714326636; Tue, 08 Jan 2013 22:52:06 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp378veb; Tue, 8 Jan 2013 22:52:05 -0800 (PST) X-Received: by 10.69.0.199 with SMTP id ba7mr190095059pbd.165.1357714325168; Tue, 08 Jan 2013 22:52:05 -0800 (PST) Received: from mail-da0-f41.google.com (mail-da0-f41.google.com [209.85.210.41]) by mx.google.com with ESMTPS id px7si65141064pbb.20.2013.01.08.22.52.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 22:52:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f41.google.com with SMTP id e20so592217dak.28 for ; Tue, 08 Jan 2013 22:52:04 -0800 (PST) X-Received: by 10.66.84.3 with SMTP id u3mr185945145pay.51.1357714324443; Tue, 08 Jan 2013 22:52:04 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ty4sm41077541pbc.57.2013.01.08.22.52.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 22:52:04 -0800 (PST) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] Input: samsung-keypad: Remove input_unregister_device() call Date: Wed, 9 Jan 2013 12:13:49 +0530 Message-Id: <1357713829-30273-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkhyAiCNO42oQz9VjCoeS3kfXgWlDV+S2xk7g7mMA7/2Pv+WNUp6BsGs7j0NvDBo4O0agxf Since devm_input_allocate_device() is used, explicit unregistering of device is not required as it is handled by devres infrastructure. Signed-off-by: Sachin Kamat --- drivers/input/keyboard/samsung-keypad.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index 22e357b..fab8972 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -501,8 +501,6 @@ static int samsung_keypad_remove(struct platform_device *pdev) device_init_wakeup(&pdev->dev, 0); platform_set_drvdata(pdev, NULL); - input_unregister_device(keypad->input_dev); - clk_unprepare(keypad->clk); return 0;