Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758924Ab1EABr3 (ORCPT ); Sat, 30 Apr 2011 21:47:29 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:49864 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073Ab1EABhu (ORCPT ); Sat, 30 Apr 2011 21:37:50 -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=Q9lMy+QhFzQnZ8xXzqpjOeWCZrYRXdhpVpcS561wmfOjcj40ZgSqu0uNLpye02RZAH 5LKquiSRP0QhCTa6KgeSgsFqIJxq+lDSq+BjJd4HuCtYkchvUshhQ1aIkK5JeUMea6uo dNywB+qNqQmTO6ellKTQIGfBLnRw+4L/PAKpM= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: Lucian Adrian Grijincu Subject: [PATCH 47/69] sysctl: remove .child from frv/ Date: Sun, 1 May 2011 03:36:17 +0200 Message-Id: <1304213799-10257-48-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304213799-10257-1-git-send-email-lucian.grijincu@gmail.com> References: <1304213799-10257-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: 1207 Lines: 44 Signed-off-by: Lucian Adrian Grijincu --- arch/frv/kernel/sysctl.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c index 6c155d6..e5c20a2 100644 --- a/arch/frv/kernel/sysctl.c +++ b/arch/frv/kernel/sysctl.c @@ -199,14 +199,10 @@ static struct ctl_table frv_table[] = * Use a temporary sysctl number. Horrid, but will be cleaned up in 2.6 * when all the PM interfaces exist nicely. */ -static struct ctl_table frv_dir_table[] = +static const __initdata struct ctl_path frv_path[] = { - { - .procname = "frv", - .mode = 0555, - .child = frv_table - }, - {} + { .procname = "frv" }, + { } }; /* @@ -214,7 +210,7 @@ static struct ctl_table frv_dir_table[] = */ static int __init frv_sysctl_init(void) { - register_sysctl_table(frv_dir_table); + register_sysctl_paths(frv_path, frv_table); return 0; } -- 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/