From patchwork Fri May 3 10:42:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516841 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 6E1033FCA5 for ; Fri, 3 May 2013 10:55:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762184Ab3ECKzT (ORCPT ); Fri, 3 May 2013 06:55:19 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:44504 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758199Ab3ECKzS (ORCPT ); Fri, 3 May 2013 06:55:18 -0400 Received: by mail-pd0-f179.google.com with SMTP id q10so857050pdj.38 for ; Fri, 03 May 2013 03:55:18 -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=Ky8aFWJfREAKAE6DLhvLDrQpzWOpe3MTnn5DZCT6nFI=; b=j5v7qdjQsc/ZhmQOuASQuVvtEX57x28kUAB9OAgs4DBssd8zW5Yeohfa2sQmRdRuyQ eEXBFyOOZy6L5f3J0KTjj1Nlp8gca5uUiEPoFhQMKakb7wVQe0y8JAq2ig6TjSZBDzFM ar2zpxe9mtO2yCixUJA39tMPFoA0jWbaukEZ24yr8fka0ZtZ0bsrZVgvKc+NxuGi+QNC zwRNHQiQCgJfg3+06JWeN1AMDb0pchLY/4W+3K1sHLYz9CkqWe6prDifJfFLwn6OP3ic ket1o/t6XWMXuHMV+/EvOQiY5L8Nc8uB7Frq0N3eigcup26lpgkRBYoF60AULinGd3Tw x6yw== X-Received: by 10.68.179.101 with SMTP id df5mr12991357pbc.199.1367578518371; Fri, 03 May 2013 03:55:18 -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.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:55:17 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 1/3] Input: q40kbd - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:12:20 +0530 Message-Id: <1367577742-14712-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnwl9Xi3T/nvG/0nzNrWFmnIIp7KKU2zsXd7O035twkSKYH/Cbfj5vSlinAIx6Y3WitjK2c 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; }