From patchwork Fri May 3 10:42:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516861 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 4C0E73FCA5 for ; Fri, 3 May 2013 10:55:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763063Ab3ECKz0 (ORCPT ); Fri, 3 May 2013 06:55:26 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:48269 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762030Ab3ECKz0 (ORCPT ); Fri, 3 May 2013 06:55:26 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so838505pbc.7 for ; Fri, 03 May 2013 03:55:25 -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=Nr4cVvy03gn+cuC8ZRVrJXlZZPEmTACC9rqCuCgVxIA=; b=oLBlZp560cJyDd0BESWmDd0ngQpQ9HuAFaNTUSHAWHWcKQ4c+jrJm2JlpDsLmaC6Zr vUU8NcWGz/0JPcpJsMIXG8KzhsShJVEx2WOewwDvSGyMfeE5WS3lwrELq0dARfmBKjFz 5WTwBDlKqEjQAFc74PGAWRNjmDdZWlqBkHVc3M8tmeWScVdkOvaUJCyVHcF+SJ1ANgE2 Y+4kF93+HgsPZDquhl6fmmIySlH9Z1hxdATw4OeGDwxbKKGBHOadLICrZhgedT36dM1t c4XNshVeAshtkoM9UQsvEKK9/bIR4CskzoDac8SjMAe1zOc+B3SbTfJm2jG/Gmzm8suP 5sIQ== X-Received: by 10.68.195.131 with SMTP id ie3mr13077337pbc.114.1367578525912; Fri, 03 May 2013 03:55:25 -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.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:55:25 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Hans-Christian Egtvedt Subject: [PATCH 3/3] Input: gpio_mouse - Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 16:12:22 +0530 Message-Id: <1367577742-14712-3-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: ALoCoQkCTwE9gHtyZVFnuuuVVZUKe6YVPow+jppbj+aH/hA0eWWXtvK2Dvy6bvoLNeYcKAVBZeuX 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: Hans-Christian Egtvedt Acked-by: Hans-Christian Egtvedt --- drivers/input/mouse/gpio_mouse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/input/mouse/gpio_mouse.c b/drivers/input/mouse/gpio_mouse.c index 532eaca..6b44413 100644 --- a/drivers/input/mouse/gpio_mouse.c +++ b/drivers/input/mouse/gpio_mouse.c @@ -138,7 +138,6 @@ static int gpio_mouse_probe(struct platform_device *pdev) out_free_polldev: input_free_polled_device(input_poll); - platform_set_drvdata(pdev, NULL); out_free_gpios: while (--i >= 0) { @@ -165,8 +164,6 @@ static int gpio_mouse_remove(struct platform_device *pdev) gpio_free(pin); } - platform_set_drvdata(pdev, NULL); - return 0; }