From patchwork Sat May 4 14:51:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2520731 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 38BB6DF25A for ; Sat, 4 May 2013 14:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760311Ab3EDOwR (ORCPT ); Sat, 4 May 2013 10:52:17 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:48492 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760081Ab3EDOwR (ORCPT ); Sat, 4 May 2013 10:52:17 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx1so1373731pab.41 for ; Sat, 04 May 2013 07:52:16 -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=JrLPgB8dq89LzsdmCHwnhDic3LEVSoXh6Nv2sr1dXWI=; b=R0b6IJ0OijgTazLGR580XPXGRBYKaudASPRJdbZ851KW+UcahCDJHiy6ukzmuXa2bz 0ntAnX9COEvB2XnIP89Um2C1RRmQSZZ9k1/+CeRM2/qLUQuHL81zAuYb9KgR5Z+qHIzR qZup/U2L2vmTJ1ONEVh7J9h0gnCnAtx/tRkFuYItNeOq+cVmc3uglJJKDdHIMwDEvbod I4FUNJKk+AzxFJpFvK1kALkouXz/mkcme1OA7s6xAZyslx5GkfXXTaXePtDDvFKHgo+Q /sd9cvOLUc7fzVqHY28XTEesR4+PqsIpT4CcCeTjf4IhBKtPiaElCUkpsPhiGmdIU1Cq QiIA== X-Received: by 10.68.16.164 with SMTP id h4mr18278429pbd.122.1367679136714; Sat, 04 May 2013 07:52:16 -0700 (PDT) Received: from localhost.localdomain ([122.179.104.58]) by mx.google.com with ESMTPSA id sg4sm16085186pbc.7.2013.05.04.07.52.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 04 May 2013 07:52:16 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Heiko Stuebner Subject: [PATCH 3/9] Input: gpio_tilt_polled - Remove redundant platform_set_drvdata() Date: Sat, 4 May 2013 20:21:52 +0530 Message-Id: <1367679118-2980-3-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: ALoCoQk6AUkA4F6tpIds/rNqzk8qkab4UpIcnmxxD/LDfxzOy1nYSaLrq5d4v+Rc79P4eiKY4h1l 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: Heiko Stuebner Acked-by: Heiko Stuebner --- drivers/input/misc/gpio_tilt_polled.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/gpio_tilt_polled.c b/drivers/input/misc/gpio_tilt_polled.c index da05cca..714c683 100644 --- a/drivers/input/misc/gpio_tilt_polled.c +++ b/drivers/input/misc/gpio_tilt_polled.c @@ -184,8 +184,6 @@ static int gpio_tilt_polled_remove(struct platform_device *pdev) struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev); const struct gpio_tilt_platform_data *pdata = tdev->pdata; - platform_set_drvdata(pdev, NULL); - input_unregister_polled_device(tdev->poll_dev); input_free_polled_device(tdev->poll_dev);