sparc: Machine description indices can vary
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 May 2017 19:17:56 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:20 +0000 (13:16 +0200)
commit7047c2009be99b0e9d65800bd271111bec2195f5
treef46afbecb5065d3f4c1a12320278cd9500a13816
parent54e23c087f3692616db08b9d6deba7ae2c73e306
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