driver core: fix up some missing class.devnode() conversions.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Nov 2022 17:35:39 +0000 (18:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2022 08:28:46 +0000 (09:28 +0100)
commitfb12940f51d96ead10f9c0fd578e69b8de10ca81
tree4a18943b1a39c7a5f4efb40bc3f8f82cd9a9dc5c
parentff62b8e6588fb07bedda7423622c140c4edd66a7
driver core: fix up some missing class.devnode() conversions.

In commit ff62b8e6588f ("driver core: make struct class.devnode() take a
const *") the ->devnode callback changed the pointer to be const, but a
few instances of PowerPC drivers were not caught for some reason.

Fix this up by changing the pointers to be const.

Fixes: ff62b8e6588f ("driver core: make struct class.devnode() take a const *")
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Frederic Barrat <fbarrat@linux.ibm.com>
Cc: Andrew Donnellan <ajd@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@lists.ozlabs.org
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20221128173539.3112234-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/book3s/vas-api.c
drivers/misc/cxl/file.c
drivers/misc/ocxl/file.c