From patchwork Fri May 3 11:37: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: 241277 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EDEB62C00D4 for ; Fri, 3 May 2013 21:51:49 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UYEWB-0002wU-Cp; Fri, 03 May 2013 11:51:15 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UYEW8-0005rY-Ul; Fri, 03 May 2013 11:51:12 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UYEW4-0005pD-9m for linux-mtd@lists.infradead.org; Fri, 03 May 2013 11:51:09 +0000 Received: by mail-pa0-f44.google.com with SMTP id jh10so889256pab.31 for ; Fri, 03 May 2013 04:50:44 -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=yvTeQPuUhhke4zilUoEcBpiOSo7bGO/tNcdoLs/JfHw=; b=SdiMhzDNQkMTaFdTwSEmPvEF9ZaTPJJPhamI+4WnRDxeGfIHwyvEqG7TgYSdxGxftU mlrRPcvmlyCt6ljQUAUV4w+25fcjeszY33L+P0NttsfLWBRsR1Pt+g/vrquThLSYkVNJ /67d85oPAWsbGnq72Oy6wK10hhYUyS3nXwHW1TqtWN1aSlIDspNgMD6zqP+gNKJmSfWQ zv3isS2wkZcSf2WBssMe1uqnLJqJ5y4Y930DKyjyw0Bnkr32Fpx+W0uwZkTZJ0ygPOc2 RdiR3ptS8g/aXIjFPWa6EQLhd92yxxWEbUoRYWLOoSptyj17MByeHEvXSpa5ChRpD0h7 HMbw== X-Received: by 10.66.51.8 with SMTP id g8mr14123746pao.171.1367581844315; Fri, 03 May 2013 04:50:44 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id sg4sm11422184pbc.7.2013.05.03.04.50.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 04:50:43 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Subject: [PATCH 3/3] mtd: onenand/samsung: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 17:07:43 +0530 Message-Id: <1367581063-24295-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367581063-24295-1-git-send-email-sachin.kamat@linaro.org> References: <1367581063-24295-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQms66XsFW5DV/T1TnCbuQL/xw7IqavEO9Y856BjHkHOr8xKEZ0DoKQBg6bl7WTLM41B683w X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130503_075108_444630_65B31275 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.44 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: artem.bityutskiy@linux.intel.com, kyungmin.park@samsung.com, dwmw2@infradead.org, dedekind1@gmail.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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: Kyungmin Park --- drivers/mtd/onenand/samsung.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index 2cf7408..cebc48d 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -1073,7 +1073,6 @@ static int s3c_onenand_remove(struct platform_device *pdev) release_mem_region(onenand->base_res->start, resource_size(onenand->base_res)); - platform_set_drvdata(pdev, NULL); kfree(onenand->oob_buf); kfree(onenand->page_buf); kfree(onenand);