powerpc/pseries/vio: Don't return ENODEV if node or compatible missing
authorLidong Zhong <lidong.zhong@suse.com>
Thu, 11 Apr 2024 02:04:50 +0000 (10:04 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Apr 2024 13:51:16 +0000 (23:51 +1000)
commit29247de4ad753771afef95ace8af738d807ca279
treebdfad847f3d95a0d5eaaa7d1eb340b0fc6e7d954
parentff2e185cf73df480ec69675936c4ee75a445c3e4
powerpc/pseries/vio: Don't return ENODEV if node or compatible missing

We noticed the following nuisance messages during boot process:

  vio vio: uevent: failed to send synthetic uevent
  vio 4000: uevent: failed to send synthetic uevent
  vio 4001: uevent: failed to send synthetic uevent
  vio 4002: uevent: failedto send synthetic uevent
  vio 4004: uevent: failed to send synthetic uevent

It's caused by either vio_register_device_node() failing to set
dev->of_node or the node is missing a "compatible" property. To match
the definition of modalias in modalias_show(), remove the return of
ENODEV in such cases. The failure messages is also suppressed with this
change.

Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240411020450.12725-1-lidong.zhong@suse.com
arch/powerpc/platforms/pseries/vio.c