From patchwork Fri May 3 10:42:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516851 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 5C7793FCA5 for ; Fri, 3 May 2013 10:55:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763047Ab3ECKzW (ORCPT ); Fri, 3 May 2013 06:55:22 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:59832 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758199Ab3ECKzW (ORCPT ); Fri, 3 May 2013 06:55:22 -0400 Received: by mail-pa0-f44.google.com with SMTP id jh10so870138pab.17 for ; Fri, 03 May 2013 03:55:21 -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:in-reply-to :references:x-gm-message-state; bh=//5DP7e7nRAYgoVlp/VAU8/7vlz+cqKGv575ZBg+9AA=; b=MOl6GARlrIPYVla8LPECRyhGDP1E1EGq6rh0u0BPBbJzEbHrWZ3CDGpmNDB7GbXVHz Oib5o6oRTNx1zC0qIlq+aFtNALy06LZGCz+sHUnmhWNUU1aiSG7sqA1bZoSqJ1B5jsr7 oaK15GokV5RtQKpEaZ12DfvEuVxBD8QbHSEqX3iQ8Whst8mXbDcHnsh7J079BPsmhPMU 74N6JlZ864dayXSZOKuzRGdmt/BNZYDDxsNPhqFrBXvKH0r3FtMFojb4MuHCwxwusE7z kB4qgilHfN+bdiBiM53gXBIZvUPwya38e2n9gL3xppr8wZZC5yS2ELpnUMeSiYl+Ypsc yPcw== X-Received: by 10.66.250.161 with SMTP id zd1mr14106875pac.141.1367578521918; Fri, 03 May 2013 03:55:21 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id bs3sm11214484pbb.36.2013.05.03.03.55.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:55:21 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 2/3] Input: amimouse - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:12:21 +0530 Message-Id: <1367577742-14712-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367577742-14712-1-git-send-email-sachin.kamat@linaro.org> References: <1367577742-14712-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQm9T1+yYan2PMgCDWh1qvyj6bPljVPcJsRZ+RhmuoL+hLQbDMeqFiTU0TCIReHUiZY0PH34 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/mouse/amimouse.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/mouse/amimouse.c b/drivers/input/mouse/amimouse.c index b55d5af..62ec52b 100644 --- a/drivers/input/mouse/amimouse.c +++ b/drivers/input/mouse/amimouse.c @@ -133,7 +133,6 @@ static int __exit amimouse_remove(struct platform_device *pdev) { struct input_dev *dev = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); input_unregister_device(dev); return 0; }