aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/kvm_ppc.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-07-21 02:46:11 +0200
committerAlexander Graf <agraf@suse.de>2011-10-06 09:43:35 +0200
commite95a69cb6dce91c971bdf34a84a4026ff6b7821f (patch)
tree61802a1791c2beb6e98289b77c213da84dc89369 /target-ppc/kvm_ppc.c
parent7dadd40c89837a9c61d6bb24164a6c6b660d70a4 (diff)
downloadqemu-arm-e95a69cb6dce91c971bdf34a84a4026ff6b7821f.tar.gz
PPC: KVM: Remove kvmppc_read_host_property
We just got rid of the last user of kvmppc_read_host_property, so we can now safely remove it. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/kvm_ppc.c')
-rw-r--r--target-ppc/kvm_ppc.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c
index 26ecc9d25f..24fc6bce3b 100644
--- a/target-ppc/kvm_ppc.c
+++ b/target-ppc/kvm_ppc.c
@@ -21,41 +21,6 @@
static QEMUTimer *kvmppc_timer;
static unsigned int kvmppc_timer_rate;
-#ifdef CONFIG_FDT
-int kvmppc_read_host_property(const char *node_path, const char *prop,
- void *val, size_t len)
-{
- char *path;
- FILE *f;
- int ret = 0;
- int pathlen;
-
- pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop)
- + 1;
- path = g_malloc(pathlen);
-
- snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop);
-
- f = fopen(path, "rb");
- if (f == NULL) {
- ret = errno;
- goto free;
- }
-
- len = fread(val, len, 1, f);
- if (len != 1) {
- ret = ferror(f);
- goto close;
- }
-
-close:
- fclose(f);
-free:
- free(path);
- return ret;
-}
-#endif
-
static void kvmppc_timer_hack(void *opaque)
{
qemu_notify_event();