From patchwork Fri May 3 10:28:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516791 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 40280DF2E5 for ; Fri, 3 May 2013 10:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762140Ab3ECKmN (ORCPT ); Fri, 3 May 2013 06:42:13 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:49831 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761851Ab3ECKmM (ORCPT ); Fri, 3 May 2013 06:42:12 -0400 Received: by mail-pb0-f42.google.com with SMTP id up7so837678pbc.1 for ; Fri, 03 May 2013 03:42:12 -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=KJQNJIc/RP2A2QGWXXlM2jtlsMBK8yW0XNeH3S0jvwg=; b=EO+63qdVugZ0udqQpkWYQAS69flG303cwnIIezpqRw6F/KEatMkzkFYRqlkco6s6x6 4ehZAQiyXTmv5L0ukis5f9xHgXGJkis7fQZdbvZGKC54pZHJXOjj4PkcMnKW3aYWFIAL GOhEa8fqc9gILqYhntXCKHD73GOgaFuFEncJLjjGVP+U7cu/nmb2Nm1lMlXmjd4uYWaE PclhCb8e0Ok4bddC/OboLRefRA6uRGiEDUqHcKm+PcgXrP2mFk9NmIuDJWqzYW6EXGqz Gy9B9+3QGm46CC1owALtobYQ1FijjveNbREe/aw4t0DQasyhVUiktlGhhLOXqwL9GvOW D87A== X-Received: by 10.66.145.166 with SMTP id sv6mr14331487pab.1.1367577732343; Fri, 03 May 2013 03:42:12 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id hp1sm12366018pac.3.2013.05.03.03.42.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:42:11 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Wan ZongShun Subject: [PATCH 9/9] Input: w90p910_ts: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:42 +0530 Message-Id: <1367576922-31459-9-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> References: <1367576922-31459-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnJFQ7a1BCF+jpZ6n9zRoi2uAy70eKJsaHcA+uh+5wB9Cpk1eN6Mhuvqt8bHhaOxnTRBg49 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: Wan ZongShun --- drivers/input/touchscreen/w90p910_ts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/w90p910_ts.c b/drivers/input/touchscreen/w90p910_ts.c index d2ef8f0..003d0c3 100644 --- a/drivers/input/touchscreen/w90p910_ts.c +++ b/drivers/input/touchscreen/w90p910_ts.c @@ -318,8 +318,6 @@ static int w90x900ts_remove(struct platform_device *pdev) input_unregister_device(w90p910_ts->input); kfree(w90p910_ts); - platform_set_drvdata(pdev, NULL); - return 0; }