Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932458Ab1EHWl0 (ORCPT ); Sun, 8 May 2011 18:41:26 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:53450 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932364Ab1EHWlL (ORCPT ); Sun, 8 May 2011 18:41:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=OP8Bl5IoavsjV0INKN7NATcOU+bmPUlDp9ab7bWPoYAw1478nZff6d/6I8+yU8xASn MztLtJSFl2jmrZ2T96yIfWBNvqsWP35gcIp5FBhYZ848L88L6AxfKqWDxIpNSmA5pbzg i0Iav35IpuBY9HAlw7wnk3JSnCCubN6FMXGYs= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, Lucian Adrian Grijincu Subject: [v2 038/115] sysctl: remove .child from reboot/warm (arm) Date: Mon, 9 May 2011 00:38:50 +0200 Message-Id: <1304894407-32201-39-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> References: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1748 Lines: 58 Signed-off-by: Lucian Adrian Grijincu --- arch/arm/mach-bcmring/arch.c | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-bcmring/arch.c b/arch/arm/mach-bcmring/arch.c index 73eb066..33c10fd 100644 --- a/arch/arm/mach-bcmring/arch.c +++ b/arch/arm/mach-bcmring/arch.c @@ -55,20 +55,18 @@ static struct ctl_table_header *bcmring_sysctl_header; static struct ctl_table bcmring_sysctl_warm_reboot[] = { { - .procname = "warm", - .data = &bcmring_arch_warm_reboot, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = proc_dointvec}, - {} + .procname = "warm", + .data = &bcmring_arch_warm_reboot, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec, + }, + { } }; -static struct ctl_table bcmring_sysctl_reboot[] = { - { - .procname = "reboot", - .mode = 0555, - .child = bcmring_sysctl_warm_reboot}, - {} +static const __initdata struct ctl_path bcmring_sysctl_path[] = { + { .procname = "reboot" }, + { } }; static struct resource nand_resource[] = { @@ -117,7 +115,8 @@ static struct platform_device *devices[] __initdata = { static void __init bcmring_init_machine(void) { - bcmring_sysctl_header = register_sysctl_table(bcmring_sysctl_reboot); + bcmring_sysctl_header = register_sysctl_paths(bcmring_sysctl_path, + bcmring_sysctl_warm_reboot); /* Enable spread spectrum */ chipcHw_enableSpreadSpectrum(); -- 1.7.5.134.g1c08b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/