summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/isa.c
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2023-03-10 09:50:50 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2023-04-13 20:49:35 +0200
commitca14ccf310ee9d575c3bacbf1d61d9640d0025b6 (patch)
tree12afccb22131bd2288d41d661d14814f6551b0b7 /arch/arm/kernel/isa.c
parentia64: simplify one-level sysctl registration for kdump_ctl_table (diff)
downloadlinux-ca14ccf310ee9d575c3bacbf1d61d9640d0025b6.tar.xz
linux-ca14ccf310ee9d575c3bacbf1d61d9640d0025b6.zip
arm: simplify two-level sysctl registration for ctl_isa_vars
There is no need to declare two tables to just create directories, this can be easily be done with a prefix path with register_sysctl(). Simplify this registration. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'arch/arm/kernel/isa.c')
-rw-r--r--arch/arm/kernel/isa.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/arm/kernel/isa.c b/arch/arm/kernel/isa.c
index d8a509c5d5bd..20218876bef2 100644
--- a/arch/arm/kernel/isa.c
+++ b/arch/arm/kernel/isa.c
@@ -40,27 +40,11 @@ static struct ctl_table ctl_isa_vars[4] = {
static struct ctl_table_header *isa_sysctl_header;
-static struct ctl_table ctl_isa[2] = {
- {
- .procname = "isa",
- .mode = 0555,
- .child = ctl_isa_vars,
- }, {}
-};
-
-static struct ctl_table ctl_bus[2] = {
- {
- .procname = "bus",
- .mode = 0555,
- .child = ctl_isa,
- }, {}
-};
-
void __init
register_isa_ports(unsigned int membase, unsigned int portbase, unsigned int portshift)
{
isa_membase = membase;
isa_portbase = portbase;
isa_portshift = portshift;
- isa_sysctl_header = register_sysctl_table(ctl_bus);
+ isa_sysctl_header = register_sysctl("bus/isa", ctl_isa_vars);
}