summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/hostfile.c
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-05-17 13:53:54 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-05-17 18:56:50 +0200
commitc2bd07f6a971793a6f40f99963ad761064a26df5 (patch)
treed949fac8a39d6a098ecc7bc3d734a3286f2a10ca /arch/sandbox/board/hostfile.c
parent64476d2177a53228319c4ab5b99cfb66ec8cc365 (diff)
downloadbarebox-c2bd07f6a971793a6f40f99963ad761064a26df5.tar.gz
barebox-c2bd07f6a971793a6f40f99963ad761064a26df5.tar.xz
sandbox: allow lseek on host files
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board/hostfile.c')
-rw-r--r--arch/sandbox/board/hostfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 38a52a886c..dbaadcc9c9 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -66,6 +66,7 @@ static void hf_info(struct device_d *dev)
static struct file_operations hf_fops = {
.read = hf_read,
.write = hf_write,
+ .lseek = dev_lseek_default,
};
static int hf_probe(struct device_d *dev)