artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f587ab0
)
revert component_add() change
author
jsg
<jsg@openbsd.org>
Sat, 6 Jan 2024 15:52:13 +0000
(15:52 +0000)
committer
jsg
<jsg@openbsd.org>
Sat, 6 Jan 2024 15:52:13 +0000
(15:52 +0000)
avoids fault in amdgpu_dm_audio_component_bind()
problem reported by matthieu@
sys/dev/pci/drm/include/linux/component.h
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/include/linux/component.h
b/sys/dev/pci/drm/include/linux/component.h
index
e042f33
..
44f6d40
100644
(file)
--- 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)