From patchwork Sat May 4 14:51:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520791 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 27E8FDF25A for ; Sat, 4 May 2013 14:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760426Ab3EDOwd (ORCPT ); Sat, 4 May 2013 10:52:33 -0400 Received: from mail-da0-f53.google.com ([209.85.210.53]:61977 "EHLO mail-da0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760417Ab3EDOwd (ORCPT ); Sat, 4 May 2013 10:52:33 -0400 Received: by mail-da0-f53.google.com with SMTP id o9so1195246dan.26 for ; Sat, 04 May 2013 07:52:32 -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=gsAoN8+hB22H0QQrYP038QEi/RKiD0DluA1WIMTYROc=; b=Xg63CvCr7oyhl6hdFVtN8Yd+eqvbcc3rUHpzcl54wSTTdvwicgpNwx1h3nVcc5M8Gn 3p3YW5N1wCOakP6fUaq9wp04HfxTifQ+cHxn4LGmQTeHvQCW48F/u2eDaQ4TvbFxP8Py svXqYT1rnOfFGNjr0h6YkLpj6o6TK/rJbVX25HaRt4c7Y7Nm4oUES8IzG93X2q+DO/MS PGOZnbJq4fFh6QgXn9drgWHF6BoAp8W+VRwYX1HAmlmqqxiekxprGNSBOjX49tm/bl4A Byxv20OWC8BArOYf1qZTk+V2PGJU9uKLCWOOKnPK8RY/A8zoakltkItCQnHTLxuAMw/5 Olyw== X-Received: by 10.68.136.198 with SMTP id qc6mr13809496pbb.117.1367679152700; Sat, 04 May 2013 07:52:32 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:32 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Daniel Mack Subject: [PATCH 9/9] Input: rotary_encoder - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:58 +0530 Message-Id: <1367679118-2980-9-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1367679118-2980-1-git-send-email-sachin.kamat@linaro.org> References: <1367679118-2980-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmTlAACNOEPB0T0C3pRnjscQfHm9JS8/OQKqeDwphTRF0rPwMcFlia0y97HxqH3Mvi/YGRc 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 Cc: Daniel Mack Acked-by: Daniel Mack --- drivers/input/misc/rotary_encoder.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index aff47b2..5b1aff8 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -317,8 +317,6 @@ static int rotary_encoder_remove(struct platform_device *pdev) if (!dev_get_platdata(&pdev->dev)) kfree(pdata); - platform_set_drvdata(pdev, NULL); - return 0; }