driver core: cpu: don't hand-override the uevent bus_type callback.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2023 10:24:08 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Feb 2023 10:50:41 +0000 (11:50 +0100)
commit2bc19066bda340540468ff88c2b1a798983bfd28
tree67439f5da2ba04bd17e5171950fda8ea36898709
parent9d3fe6aa6b9517408064c7c3134187e8ec77dbf7
driver core: cpu: don't hand-override the uevent bus_type callback.

Instead of having to change the uevent bus_type callback by hand at
runtime, set it at build time based on the build configuration options,
making this much simpler to maintain and understand (and allow to make
the structure constant.)

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230210102408.1083177-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cpu.c