From: jsg Date: Sat, 6 Jan 2024 15:52:13 +0000 (+0000) Subject: revert component_add() change X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3de6427df554cad336f7097189879d662506c924;p=openbsd revert component_add() change avoids fault in amdgpu_dm_audio_component_bind() problem reported by matthieu@ --- diff --git a/sys/dev/pci/drm/include/linux/component.h b/sys/dev/pci/drm/include/linux/component.h index e042f331582..44f6d40aca0 100644 --- a/sys/dev/pci/drm/include/linux/component.h +++ b/sys/dev/pci/drm/include/linux/component.h @@ -18,13 +18,8 @@ struct component_master_ops { void (*unbind)(struct device *); }; -static inline int -component_add(struct device *dev, const struct component_ops *ops) -{ - return ops->bind(dev, NULL, NULL); -} - #define component_del(a, b) +#define component_add(a, b) 0 static inline int component_bind_all(struct device *dev, void *data)