From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMixv-00053Y-Mt for qemu-devel@nongnu.org; Thu, 29 Dec 2016 17:14:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMixs-0001c3-Gk for qemu-devel@nongnu.org; Thu, 29 Dec 2016 17:14:27 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 29 Dec 2016 23:12:13 +0100 Message-Id: <1483049536-21548-4-git-send-email-hpoussin@reactos.org> In-Reply-To: <1483049536-21548-1-git-send-email-hpoussin@reactos.org> References: <1483049536-21548-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 3/6] prep: do not use global variable to access nvram List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: David Gibson , Alexander Graf , qemu-ppc@nongnu.org, Thomas Huth , Giancarlo Teodori , =?UTF-8?q?Herv=C3=A9=20Poussineau?= Signed-off-by: Herv=C3=A9 Poussineau --- hw/ppc/prep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 054af1e..9fb89d3 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -339,13 +339,13 @@ static PortioList prep_port_list; /* NVRAM helpers */ static inline uint32_t nvram_read(Nvram *nvram, uint32_t addr) { - NvramClass *k =3D NVRAM_GET_CLASS(sysctrl->nvram); + NvramClass *k =3D NVRAM_GET_CLASS(nvram); return (k->read)(nvram, addr); } =20 static inline void nvram_write(Nvram *nvram, uint32_t addr, uint32_t val= ) { - NvramClass *k =3D NVRAM_GET_CLASS(sysctrl->nvram); + NvramClass *k =3D NVRAM_GET_CLASS(nvram); (k->write)(nvram, addr, val); } =20 --=20 2.1.4