From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPG23-00035L-KE for qemu-devel@nongnu.org; Thu, 05 Jan 2017 16:57:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPG1y-0007lV-PJ for qemu-devel@nongnu.org; Thu, 05 Jan 2017 16:57:11 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 5 Jan 2017 22:56:54 +0100 Message-Id: <1483653417-17439-2-git-send-email-hpoussin@reactos.org> In-Reply-To: <1483653417-17439-1-git-send-email-hpoussin@reactos.org> References: <1483653417-17439-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 v2 1/4] 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