sparc: Machine description indices can vary
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 May 2017 19:17:56 +0000 (20:17 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:54:25 +0000 (02:54 +0000)
commit23ece829e6cd593708ba28d089e7d1ca114907ff
tree5924ffc03f521fcfe07e0975adabad2b0a6f1f6e
parent9dc48b5eecb7c1322399947aed87207958209c56
sparc: Machine description indices can vary

[ Upstream commit c982aa9c304bf0b9a7522fd118fed4afa5a0263c ]

VIO devices were being looked up by their index in the machine
description node block, but this often varies over time as devices are
added and removed. Instead, store the ID and look up using the type,
config handle and ID.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=112541
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/vio.c