powerpc: vio: move device attributes into a new ifdef
authorRicardo B. Marliere <ricardo@marliere.net>
Mon, 12 Feb 2024 20:04:59 +0000 (17:04 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Feb 2024 13:14:05 +0000 (00:14 +1100)
commite15d01277a8bdacf8ac485049d21d450153fa47e
treebf4fc6e459fdcf26b03a09333571e98593ac4452
parentc5aebb53b32460bc52680dd4e2a2f6b84d5ea521
powerpc: vio: move device attributes into a new ifdef

In order to make the distinction of the vio_bus_type variable based on
CONFIG_PPC_SMLPAR more explicit, move the required structs into a new
ifdef block. This is needed in order to make vio_bus_type const and
because the distinction is made explicit, there is no need to set the
fields within the vio_cmo_sysfs_init function.

Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240212-bus_cleanup-powerpc2-v2-1-8441b3f77827@marliere.net
arch/powerpc/platforms/pseries/vio.c