Date: Thu, 26 Jun 2014 10:48:01 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267910 - head/sys/dev/acpica Message-ID: <201406261048.s5QAm19R016799@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Jun 26 10:48:01 2014 New Revision: 267910 URL: http://svnweb.freebsd.org/changeset/base/267910 Log: Remove not needed initialisation code. Modified: head/sys/dev/acpica/acpi_powerres.c Modified: head/sys/dev/acpica/acpi_powerres.c ============================================================================== --- head/sys/dev/acpica/acpi_powerres.c Thu Jun 26 10:21:00 2014 (r267909) +++ head/sys/dev/acpica/acpi_powerres.c Thu Jun 26 10:48:01 2014 (r267910) @@ -92,9 +92,9 @@ struct acpi_powerresource { }; static TAILQ_HEAD(acpi_powerresource_list, acpi_powerresource) - acpi_powerresources; + acpi_powerresources = TAILQ_HEAD_INITIALIZER(acpi_powerresources); static TAILQ_HEAD(acpi_powerconsumer_list, acpi_powerconsumer) - acpi_powerconsumers; + acpi_powerconsumers = TAILQ_HEAD_INITIALIZER(acpi_powerconsumers); ACPI_SERIAL_DECL(powerres, "ACPI power resources"); static ACPI_STATUS acpi_pwr_register_consumer(ACPI_HANDLE consumer); @@ -115,15 +115,6 @@ static struct acpi_powerresource static struct acpi_powerconsumer *acpi_pwr_find_consumer(ACPI_HANDLE consumer); -/* Initialise our lists. */ -static void -acpi_pwr_init(void *junk) -{ - TAILQ_INIT(&acpi_powerresources); - TAILQ_INIT(&acpi_powerconsumers); -} -SYSINIT(acpi_powerresource, SI_SUB_TUNABLES, SI_ORDER_ANY, acpi_pwr_init, NULL); - /* * Register a power resource. *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406261048.s5QAm19R016799>