Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756516Ab1EHXFT (ORCPT ); Sun, 8 May 2011 19:05:19 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:49055 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755497Ab1EHWkk (ORCPT ); Sun, 8 May 2011 18:40:40 -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=Nklx5Z/J+PGc4CMr1pY3xtfQoz27T2cW86fOmkPqPJLoYTqkZaNxGP+vkJMCtRz/Ze 1gdXhUFbNBN2NjJ9vzf15wmqt6y7G5kYU+uwTLFGd5cCPdrNYKdAZFSsBK20yA/k1fv6 TAediiUwD/t3gQMlfSWHPBtMp3v6XXRNqb0QM= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, Lucian Adrian Grijincu Subject: [v2 010/115] sysctl: remove .child from dev/hpet/ Date: Mon, 9 May 2011 00:38:22 +0200 Message-Id: <1304894407-32201-11-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: 1721 Lines: 71 Signed-off-by: Lucian Adrian Grijincu --- drivers/char/hpet.c | 38 ++++++++++++-------------------------- 1 files changed, 12 insertions(+), 26 deletions(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 7066e80..303de7e 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -721,33 +721,19 @@ static int hpet_is_known(struct hpet_data *hdp) static ctl_table hpet_table[] = { { - .procname = "max-user-freq", - .data = &hpet_max_freq, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = proc_dointvec, - }, - {} + .procname = "max-user-freq", + .data = &hpet_max_freq, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec, + }, + { } }; -static ctl_table hpet_root[] = { - { - .procname = "hpet", - .maxlen = 0, - .mode = 0555, - .child = hpet_table, - }, - {} -}; - -static ctl_table dev_root[] = { - { - .procname = "dev", - .maxlen = 0, - .mode = 0555, - .child = hpet_root, - }, - {} +static const struct ctl_path hpet_path[] = { + { .procname = "dev" }, + { .procname = "hpet" }, + { } }; static struct ctl_table_header *sysctl_header; @@ -1053,7 +1039,7 @@ static int __init hpet_init(void) if (result < 0) return -ENODEV; - sysctl_header = register_sysctl_table(dev_root); + sysctl_header = register_sysctl_paths(hpet_path, hpet_table); result = acpi_bus_register_driver(&hpet_acpi_driver); if (result < 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/