Skip to content
Snippets Groups Projects
Commit e0946609 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

sdbfs/kernel: added 'size' field to sdbfs_dev



Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent cb1f6dea
Branches
Tags
No related merge requests found
...@@ -77,6 +77,7 @@ static int fakedev_init(void) ...@@ -77,6 +77,7 @@ static int fakedev_init(void)
} }
d->sd.name = fakedev_fsimg[i]; d->sd.name = fakedev_fsimg[i];
d->sd.blocksize = 64; /* bah! */ d->sd.blocksize = 64; /* bah! */
d->sd.size = d->fw->size;
d->sd.ops = &fakedev_ops; d->sd.ops = &fakedev_ops;
if (sdbfs_register_device(&d->sd) < 0) { if (sdbfs_register_device(&d->sd) < 0) {
dev_err(&fakedev_device, "can't register %s\n", dev_err(&fakedev_device, "can't register %s\n",
......
...@@ -62,7 +62,7 @@ static int sdbmem_parse(char *desc, struct sdbmem *d) ...@@ -62,7 +62,7 @@ static int sdbmem_parse(char *desc, struct sdbmem *d)
d->address = ioremap(addr, size); d->address = ioremap(addr, size);
if (!d->address) if (!d->address)
return -ENOMEM; return -ENOMEM;
d->datalen = size; d->sd.size = d->datalen = size;
return 0; return 0;
} }
......
...@@ -35,6 +35,9 @@ struct sdbfs_dev { ...@@ -35,6 +35,9 @@ struct sdbfs_dev {
unsigned long entrypoint; unsigned long entrypoint;
struct sdbfs_dev_ops *ops; struct sdbfs_dev_ops *ops;
struct list_head list; struct list_head list;
unsigned long size;
/* Following is private to the FS code */
unsigned long ino_base;
}; };
/* flags */ /* flags */
......
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