From patchwork Mon May 6 04:23:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2522321 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 56B7EDF230 for ; Mon, 6 May 2013 04:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137Ab3EFEhJ (ORCPT ); Mon, 6 May 2013 00:37:09 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:45324 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3EFEhI (ORCPT ); Mon, 6 May 2013 00:37:08 -0400 Received: by mail-pb0-f49.google.com with SMTP id rp8so1756970pbb.8 for ; Sun, 05 May 2013 21:37:08 -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=XSPrOnXPcJ0czcxqC9M8Nzs22Xm+GSYlYkmyBu4OdmI=; b=OWxn06Z9NXYnfQ/Q1U8hQVsbNQT4JrdB/Rj3Bj+kL6RqiVtJrj8uSHYJ71Fqyf+dFe rcLm66asPoah+N2rvh/tIImO++7DBAlSoLL5V5gQrzJ/5kjAzUkjHD9dSctNI/+QQJMG 4oXEZS4tcVgNULpzmvdjkH9UQpDaXGPF3kcVSoXipqiJAH7SXMx1L6tUxdTjhk0Tc7pJ g2g6Wa2aqlUlJD/MyBX7L5lPXPpA+sNdPtfRx9YccJ0J2xju+g0oPOPHTSFQPggjgXfs qtk7Eg8Rm46/OwXdUs4trjkKYDpfrPrIfHCO1PUzlqVqsI+mrOjVNKBTXQe7d48ez3cw ucgQ== X-Received: by 10.68.244.38 with SMTP id xd6mr23816025pbc.131.1367815028109; Sun, 05 May 2013 21:37:08 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id at4sm22178298pbc.40.2013.05.05.21.37.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 May 2013 21:37:07 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org, Miguel Aguilar Subject: [PATCH 03/20] Input: davinci_keyscan - Remove redundant platform_set_drvdata() Date: Mon, 6 May 2013 09:53:43 +0530 Message-Id: <1367814240-8959-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> References: <1367814240-8959-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQk9Rgc0XLinFTGClyaCeEBJQCThuzC3LJm/s9hJLzRn/op82yAz/dbkZbI5fgbozlE7ioTW 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: Miguel Aguilar --- drivers/input/keyboard/davinci_keyscan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/davinci_keyscan.c b/drivers/input/keyboard/davinci_keyscan.c index 8297537..d15977a 100644 --- a/drivers/input/keyboard/davinci_keyscan.c +++ b/drivers/input/keyboard/davinci_keyscan.c @@ -314,8 +314,6 @@ static int davinci_ks_remove(struct platform_device *pdev) iounmap(davinci_ks->base); release_mem_region(davinci_ks->pbase, davinci_ks->base_size); - platform_set_drvdata(pdev, NULL); - kfree(davinci_ks); return 0;