Commit 75d33cc7 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Pierre Ossman

atmel-mci: Fix bogus debugfs file size

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: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent b17339a1
...@@ -241,7 +241,6 @@ static void atmci_init_debugfs(struct atmel_mci *host) ...@@ -241,7 +241,6 @@ static void atmci_init_debugfs(struct atmel_mci *host)
struct mmc_host *mmc; struct mmc_host *mmc;
struct dentry *root; struct dentry *root;
struct dentry *node; struct dentry *node;
struct resource *res;
mmc = host->mmc; mmc = host->mmc;
root = mmc->debugfs_root; root = mmc->debugfs_root;
...@@ -255,9 +254,6 @@ static void atmci_init_debugfs(struct atmel_mci *host) ...@@ -255,9 +254,6 @@ static void atmci_init_debugfs(struct atmel_mci *host)
if (!node) if (!node)
goto err; 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); node = debugfs_create_file("req", S_IRUSR, root, host, &atmci_req_fops);
if (!node) if (!node)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment