[PATCH 3/4] atmel-mci: Fix bogus debugfs file size

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Friday, September 19, 2008 - 12:09 pm

We used to store a binary register snapshot in the "regs" file, so we
set the file size to be the size of this snapshot. This is no longer
valid since we switched to using seq_file.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
---
 drivers/mmc/host/atmel-mci.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index becca91..3909608 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -241,7 +241,6 @@ static void atmci_init_debugfs(struct atmel_mci *host)
 	struct mmc_host	*mmc;
 	struct dentry	*root;
 	struct dentry	*node;
-	struct resource	*res;
 
 	mmc = host->mmc;
 	root = mmc->debugfs_root;
@@ -255,9 +254,6 @@ static void atmci_init_debugfs(struct atmel_mci *host)
 	if (!node)
 		goto err;
 
-	res = platform_get_resource(host->pdev, IORESOURCE_MEM, 0);
-	node->d_inode->i_size = res->end - res->start + 1;
-
 	node = debugfs_create_file("req", S_IRUSR, root, host, &atmci_req_fops);
 	if (!node)
 		goto err;
-- 
1.5.6.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] atmel-mci: fixes for 2.6.27, Haavard Skinnemoen, (Fri Sep 19, 12:09 pm)
[PATCH 1/4] atmel-mci: debugfs: enable clock before dumpin ..., Haavard Skinnemoen, (Fri Sep 19, 12:09 pm)
[PATCH 2/4] atmel-mci: Fix memory leak in atmci_regs_show, Haavard Skinnemoen, (Fri Sep 19, 12:09 pm)
[PATCH 3/4] atmel-mci: Fix bogus debugfs file size, Haavard Skinnemoen, (Fri Sep 19, 12:09 pm)
[PATCH 4/4] atmel-mci: Set MMC_CAP_NEEDS_POLL if no detect_pin, Haavard Skinnemoen, (Fri Sep 19, 12:09 pm)
Re: [PATCH 0/4] atmel-mci: fixes for 2.6.27, Pierre Ossman, (Sat Sep 20, 3:13 am)