From patchwork Mon May 6 04:23:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522301 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1AFA7DF230 for ; Mon, 6 May 2013 04:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752014Ab3EFEhE (ORCPT ); Mon, 6 May 2013 00:37:04 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:64337 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3EFEhD (ORCPT ); Mon, 6 May 2013 00:37:03 -0400 Received: by mail-pd0-f181.google.com with SMTP id p11so1797859pdj.12 for ; Sun, 05 May 2013 21:37:02 -0700 (PDT) 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=ny4i6l7TetmOPrL69xMefAb/mP6530N+UuornUvFIKs=; b=HNCC8mqFUp1BWavk8ibrFuLXX3s8VbvdXfZ5xtdigbP2HU69p66xDA3RJMTf8r86lx iPThZmcuRQSLWVJTfdVSAbQb7kY1/2+WPJ/YJ4SkIGZdQw350ZDbrfpYTS5RVmRItzmv 5aaQYNQO3+eTtZ1PZOMYZwOuRHWCAJ9GBU/n+fz2uJ8031w9es1S15tMPnfbnnW4jK6q Vhr8kHOTHg58wVbV2jewlMjZ6jSibfZnKKoWoOY3BGG0157uzds6KG78s+kWS1ZuhZBZ Rp0+XIa+yv3nlHL2Qm3FY9mYOQ2c4xbowsdeLBn+aURa3y+5JHWHhUeVpb2vUKmZCBSz bPeg== X-Received: by 10.66.197.136 with SMTP id iu8mr25537240pac.0.1367815022701; Sun, 05 May 2013 21:37:02 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id at4sm22178298pbc.40.2013.05.05.21.37.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:01 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 01/20] Input: amikbd - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:41 +0530 Message-Id: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmPUNPpyDoht2CbzzM68cqhTrlrBaUKJnchzexsWMXeKmpqeHj1LxPV8ETkGhbmmPQ3xQRK Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat --- drivers/input/keyboard/amikbd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/amikbd.c b/drivers/input/keyboard/amikbd.c index ba0b36f..096d606 100644 --- a/drivers/input/keyboard/amikbd.c +++ b/drivers/input/keyboard/amikbd.c @@ -246,7 +246,6 @@ static int __exit amikbd_remove(struct platform_device *pdev) { struct input_dev *dev = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); free_irq(IRQ_AMIGA_CIAA_SP, dev); input_unregister_device(dev); return 0;