From patchwork Fri May 3 10:36:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516831 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 0F4563FCA5 for ; Fri, 3 May 2013 10:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763030Ab3ECKtq (ORCPT ); Fri, 3 May 2013 06:49:46 -0400 Received: from mail-da0-f49.google.com ([209.85.210.49]:38444 "EHLO mail-da0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762986Ab3ECKtq (ORCPT ); Fri, 3 May 2013 06:49:46 -0400 Received: by mail-da0-f49.google.com with SMTP id p5so747187dak.22 for ; Fri, 03 May 2013 03:49:45 -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=Ky8aFWJfREAKAE6DLhvLDrQpzWOpe3MTnn5DZCT6nFI=; b=nXZxNcGsCMvQNjrf2WdNqRbBHm0yyyq8bJR5lRwk/0i9cCbOPIAAuRDoI1eL0FuD3Z DEeXyO9yX55cCD+4eC+TxcZ+yaZe0bKnt02pJdIPgw9eFVRoasoyNCbvrBTNK40MyGBV ATSrb5JBRWw5D5p/e4xZhGDdtMrZJFZg7YKGUHOmjFwsPtlNuSRDF4LemQnaIbpva06/ WibpWMcF7xkIu548aYY0USPFIF5NlA2HFcHog5kSh0R3GL+WCIEwlWSdHBrhrDw0xOiv 2Pe1HBPgA8X9eQusa49pQ8jHJzmpc6t0cqYxp9t4MUu93SmMdgW1Gx+LOzjySFbHkITe jqNA== X-Received: by 10.66.83.65 with SMTP id o1mr13750384pay.195.1367578185628; Fri, 03 May 2013 03:49:45 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zy5sm11188835pbb.43.2013.05.03.03.49.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:49:45 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 3/3] Input: q40kbd - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:06:40 +0530 Message-Id: <1367577400-9527-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367577400-9527-1-git-send-email-sachin.kamat@linaro.org> References: <1367577400-9527-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQksZv+Ue3YPhJ/waA0Oir6POArGr/+wvigVGt46sJ7tifCYJo85Ov+ea/4jVnl7O9h4SdBH 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/serio/q40kbd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/serio/q40kbd.c b/drivers/input/serio/q40kbd.c index 436a343..7a65a1b 100644 --- a/drivers/input/serio/q40kbd.c +++ b/drivers/input/serio/q40kbd.c @@ -181,7 +181,6 @@ static int q40kbd_remove(struct platform_device *pdev) free_irq(Q40_IRQ_KEYBOARD, q40kbd); kfree(q40kbd); - platform_set_drvdata(pdev, NULL); return 0; }