aboutsummaryrefslogtreecommitdiff
path: root/hw/pflash_cfi01.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-09-08 09:05:14 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-08 09:05:14 -0500
commit220724ca4ada4e30bcfff326b62822a69c23e181 (patch)
treec0bb1bdd3ec41c5945000cf43620725d2e00ffd8 /hw/pflash_cfi01.c
parentd8ac46d950451a722fd6b1d5d0768c72bee87d47 (diff)
parentcfc606da0ddcef1f7228317b9f7dfa6c94c6c64f (diff)
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r--hw/pflash_cfi01.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c
index ce48fdfae2..69b8e3d539 100644
--- a/hw/pflash_cfi01.c
+++ b/hw/pflash_cfi01.c
@@ -603,6 +603,7 @@ pflash_t *pflash_cfi01_register(target_phys_addr_t base,
g_free(pfl);
return NULL;
}
+ bdrv_attach_dev_nofail(pfl->bs, pfl);
}
#if 0 /* XXX: there should be a bit to set up read-only,
* the same way the hardware does (with WP pin).