sparc: Machine description indices can vary
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 May 2017 19:17:56 +0000 (20:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 20:45:03 +0000 (13:45 -0700)
commitc982aa9c304bf0b9a7522fd118fed4afa5a0263c
tree506653c7e93fdbebde465b906b5f900aa02338d1
parent654f4807624a657f364417c2a7454f0df9961734
sparc: Machine description indices can vary

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>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/vio.c