From 522f253ca8c731aafc8e53087a18f6015c4e776e Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 29 Jul 2011 16:35:19 +0100 Subject: hw/nand: Pass block device state to init function Pass the BlockDeviceState to the nand_init() function rather than having it look it up via drive_get() itself. Signed-off-by: Peter Maydell Signed-off-by: Andrzej Zaborowski --- hw/flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/flash.h') diff --git a/hw/flash.h b/hw/flash.h index c22e1a922c..a992bb8157 100644 --- a/hw/flash.h +++ b/hw/flash.h @@ -19,7 +19,7 @@ pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off, /* nand.c */ typedef struct NANDFlashState NANDFlashState; -NANDFlashState *nand_init(int manf_id, int chip_id); +NANDFlashState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id); void nand_done(NANDFlashState *s); void nand_setpins(NANDFlashState *s, uint8_t cle, uint8_t ale, uint8_t ce, uint8_t wp, uint8_t gnd); -- cgit v1.2.3