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: 1950921 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1726A3FC5A for ; Wed, 9 Jan 2013 06:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757176Ab3AIGwG (ORCPT ); Wed, 9 Jan 2013 01:52:06 -0500 Received: from mail-pb0-f41.google.com ([209.85.160.41]:35535 "EHLO mail-pb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757190Ab3AIGwF (ORCPT ); Wed, 9 Jan 2013 01:52:05 -0500 Received: by mail-pb0-f41.google.com with SMTP id xa7so750212pbc.14 for ; Tue, 08 Jan 2013 22:52:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=iwK93xA6l9f02FonLHjfSwv/GEHa27Pcrpc9xToQM8I=; b=P9wFJLuHP/pRHlIbRAuAFRVNRZsc2g38B/tIXPza97AGNA4dcNtXDdqP9+o+fpftNG qSCEFCuryNrVEG6qh7aEggkFDfgE26x0ZYa7MW/XQunHjD/i7Y6oza9jDejal3wMKch0 IuktN/NbpKBxnkafg+q4GXjyiiz0LcC/GFXezYKtLUWauD44vaHSntqcYribpDA+APC0 jiJAqkQ+PXi8hfQ0QehF87mxPUXD1ktgY75atqZddXv00oq3I1d843iu7XRd2JotFc+X YWvoGUI8YMPAGzOrcdi9uSJ0jkGWF1j4VpAOZHF4T95LFSBabGcw029r87xsCBglFXLZ AEfg== 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: ALoCoQm2jrRWY0UwsFU5oDl7OE2QwjwI4wIIVjGFTuKdfY7loKdXK7TypPmALnkP7Qtamx/Td1R7 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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;