From patchwork Fri May 3 10:28:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516761 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 5B7A2DF2E5 for ; Fri, 3 May 2013 10:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760964Ab3ECKmF (ORCPT ); Fri, 3 May 2013 06:42:05 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:51353 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab3ECKmE (ORCPT ); Fri, 3 May 2013 06:42:04 -0400 Received: by mail-pa0-f53.google.com with SMTP id kq12so857705pab.40 for ; Fri, 03 May 2013 03:42:03 -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=P7nDHNxvPXjAoMje6t7Jq7uaOND3lmchcOqFk3TuCaM=; b=fe6GpxXEU+7sPUweVMOM8CpD2XETjw2C3Ve7PqeIDYHH3gUxNJD64vG/5hZPORZB9O QPAJ08pNKu/Q0eJYzO5roJwmgBD0/ERW1e4y/IpLC03vSCPmPmYDSesIYv6q3uo7sp+o 376eqxTDWm27kcLg2D5O7YDLq5722q3LYEbwHnmdfe7GqmLkH6Kq+R6IeuOmakqA0I4B 0voyCvSd+1IPXwh6qi4RDp4r1RHDk2NI4LDa//oNIraJUfUT10TD6/DpeIWwhkVOdoGO TnK+r4A3YaYaNHqcDG87u7dzflStNyJjsf+rvfG4wNBQI97RBzth2Jaai5JYnv/Coooh 08OQ== X-Received: by 10.66.21.38 with SMTP id s6mr13959742pae.103.1367577723715; Fri, 03 May 2013 03:42:03 -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.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:42:03 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Sascha Hauer Subject: [PATCH 6/9] Input: mc13783_ts: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:58:39 +0530 Message-Id: <1367576922-31459-6-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: ALoCoQk0yRSf1QDD+QDUJ2X0AaD4h6w3mqfu+luOlvEv6h8zpl8okqrx1oXTIJWWmfhaqcdQphLT 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: Sascha Hauer --- drivers/input/touchscreen/mc13783_ts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/touchscreen/mc13783_ts.c b/drivers/input/touchscreen/mc13783_ts.c index 89308fe..d6f099c 100644 --- a/drivers/input/touchscreen/mc13783_ts.c +++ b/drivers/input/touchscreen/mc13783_ts.c @@ -233,8 +233,6 @@ static int mc13783_ts_remove(struct platform_device *pdev) { struct mc13783_ts_priv *priv = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); - destroy_workqueue(priv->workq); input_unregister_device(priv->idev); kfree(priv);