diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-07-29 16:35:25 +0100 |
---|---|---|
committer | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2011-07-30 06:42:03 +0200 |
commit | af5a75f41c2fd172ceaa1cabd4bec99de8dde83a (patch) | |
tree | 771b3adfe834fa5014cf82987f35717d68725118 /hw/flash.h | |
parent | d4220389ffcc1e6302e759d3b15f8605201d6369 (diff) |
onenand: Pass BlockDriverState to init function
Pass the BlockDriverState to the onenand init function so it doesn't
need to look up the drive itself.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/flash.h')
-rw-r--r-- | hw/flash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/flash.h b/hw/flash.h index 43260ce590..d61647f02a 100644 --- a/hw/flash.h +++ b/hw/flash.h @@ -38,7 +38,8 @@ uint32_t nand_getbuswidth(DeviceState *dev); /* onenand.c */ void onenand_base_update(void *opaque, target_phys_addr_t new); void onenand_base_unmap(void *opaque); -void *onenand_init(uint32_t id, int regshift, qemu_irq irq); +void *onenand_init(BlockDriverState *bdrv, uint32_t id, + int regshift, qemu_irq irq); void *onenand_raw_otp(void *opaque); /* ecc.c */ |