提交 dea681c9 编写于 作者: C Christoph Hellwig 提交者: Michael Ellerman

powerpc/ps3: mark ps3_system_bus_type static

ps3_system_bus_type is only used inside of system-bus.c, so remove
the external declaration and the very outdated comment next to it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Acked-by: NGeoff Levand <geoff@infradead.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221122072225.423432-1-hch@lst.de
上级 611c0202
...@@ -425,10 +425,6 @@ static inline void *ps3_system_bus_get_drvdata( ...@@ -425,10 +425,6 @@ static inline void *ps3_system_bus_get_drvdata(
return dev_get_drvdata(&dev->core); return dev_get_drvdata(&dev->core);
} }
/* These two need global scope for get_arch_dma_ops(). */
extern struct bus_type ps3_system_bus_type;
/* system manager */ /* system manager */
struct ps3_sys_manager_ops { struct ps3_sys_manager_ops {
......
...@@ -466,7 +466,7 @@ static struct attribute *ps3_system_bus_dev_attrs[] = { ...@@ -466,7 +466,7 @@ static struct attribute *ps3_system_bus_dev_attrs[] = {
}; };
ATTRIBUTE_GROUPS(ps3_system_bus_dev); ATTRIBUTE_GROUPS(ps3_system_bus_dev);
struct bus_type ps3_system_bus_type = { static struct bus_type ps3_system_bus_type = {
.name = "ps3_system_bus", .name = "ps3_system_bus",
.match = ps3_system_bus_match, .match = ps3_system_bus_match,
.uevent = ps3_system_bus_uevent, .uevent = ps3_system_bus_uevent,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册