@@ -981,25 +981,6 @@ DeviceState *pflash_cfi01_create(const char *name,
return dev;
}
-PFlashCFI01 *pflash_cfi01_register(hwaddr base,
- const char *name,
- hwaddr size,
- BlockBackend *blk,
- uint32_t sector_len,
- int bank_width,
- uint16_t id0, uint16_t id1,
- uint16_t id2, uint16_t id3,
- int be)
-{
- DeviceState *dev;
-
- dev = pflash_cfi01_create(name, size, blk, sector_len, bank_width,
- id0, id1, id2, id3, be);
- sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
-
- return PFLASH_CFI01(dev);
-}
-
BlockBackend *pflash_cfi01_get_blk(DeviceState *dev)
{
PFlashCFI01 *fl = PFLASH_CFI01(dev);
@@ -24,15 +24,6 @@ DeviceState *pflash_cfi01_create(const char *name,
uint16_t id0, uint16_t id1,
uint16_t id2, uint16_t id3,
int be);
-PFlashCFI01 *pflash_cfi01_register(hwaddr base,
- const char *name,
- hwaddr size,
- BlockBackend *blk,
- uint32_t sector_len,
- int width,
- uint16_t id0, uint16_t id1,
- uint16_t id2, uint16_t id3,
- int be);
BlockBackend *pflash_cfi01_get_blk(DeviceState *dev);
MemoryRegion *pflash_cfi01_get_memory(DeviceState *dev);
void pflash_cfi01_legacy_drive(DeviceState *dev, DriveInfo *dinfo);
We converted all caller of pflash_cfi01_register() by open coding a call to pflash_cfi01_create() followed by an explicit call to sysbus_mmio_map(); we can now remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/block/pflash_cfi01.c | 19 ------------------- include/hw/block/flash.h | 9 --------- 2 files changed, 28 deletions(-)