From 3de6427df554cad336f7097189879d662506c924 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 6 Jan 2024 15:52:13 +0000 Subject: [PATCH] revert component_add() change avoids fault in amdgpu_dm_audio_component_bind() problem reported by matthieu@ --- sys/dev/pci/drm/include/linux/component.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) -- 2.20.1