mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] misc: acpi-test: retire test driver in favor of WDAT driver
Date: Mon, 10 Jan 2022 11:48:31 +0100	[thread overview]
Message-ID: <20220110104831.3149574-1-a.fatoum@pengutronix.de> (raw)

With the integration of the ACPI WDAT watchdog driver, we now have an
actually useful user of the ACPI bus in tree, so the test driver
serves no purpose anymore. Drop it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/misc/Kconfig     |  6 ----
 drivers/misc/Makefile    |  1 -
 drivers/misc/acpi-test.c | 61 ----------------------------------------
 3 files changed, 68 deletions(-)
 delete mode 100644 drivers/misc/acpi-test.c

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 56569145076e..5ab0506cd9fa 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -37,12 +37,6 @@ config UBOOTVAR
 	  While it can be used standalone, it is best when coupled
 	  with corresponding filesystem driver.
 
-config ACPI_TEST
-	bool "ACPI Test driver"
-	depends on ACPI
-	help
-	  This is a simple Test driver to test the ACPI bus.
-
 config STARFIVE_PWRSEQ
 	bool "StarFive power sequencing driver"
 	depends on SOC_STARFIVE
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 05da264a426d..6326e784fc98 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -8,5 +8,4 @@ obj-$(CONFIG_SRAM)		+= sram.o
 obj-$(CONFIG_STATE_DRV)		+= state.o
 obj-$(CONFIG_DEV_MEM)		+= mem.o
 obj-$(CONFIG_UBOOTVAR)		+= ubootvar.o
-obj-$(CONFIG_ACPI_TEST)		+= acpi-test.o
 obj-$(CONFIG_STARFIVE_PWRSEQ)	+= starfive-pwrseq.o
diff --git a/drivers/misc/acpi-test.c b/drivers/misc/acpi-test.c
deleted file mode 100644
index af20370fbc73..000000000000
--- a/drivers/misc/acpi-test.c
+++ /dev/null
@@ -1,61 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * Copyright (c) 2019 Ahmad Fatoum
- */
-
-#include <common.h>
-#include <init.h>
-#include <acpi.h>
-
-static const char *profiles[] = {
-	"Unspecified",
-	"Desktop",
-	"Mobile",
-	"Workstation",
-	"Enterprise Server",
-	"SOHO Server",
-	"Applicance PC",
-	"Performance Server",
-	"Tablet",
-};
-
-static int acpi_test_probe(struct device_d *dev)
-{
-	const char *profile = "reserved";
-	u8 *sdt;
-	u8 profileno;
-
-	dev_dbg(dev, "driver initializing...\n");
-
-	sdt = (u8 __force *)dev_request_mem_region_by_name(dev, "SDT");
-	if (IS_ERR(sdt)) {
-		dev_err(dev, "no SDT resource available: %pe\n", sdt);
-		return PTR_ERR(sdt);
-	}
-
-	dev_dbg(dev, "SDT is at 0x%p\n", sdt);
-
-	profileno = sdt[45];
-
-	if (profileno < ARRAY_SIZE(profiles))
-		profile = profiles[profileno];
-
-	dev_info(dev, "PM profile is for '%s'\n", profile);
-
-	return 0;
-}
-
-static void acpi_test_remove(struct device_d *dev)
-{
-	dev_dbg(dev, "FADT driver removed\n");
-}
-
-static struct acpi_driver acpi_test_driver = {
-	.signature = "FACP",
-	.driver = {
-		.name = "acpi-test",
-		.probe = acpi_test_probe,
-		.remove = acpi_test_remove,
-	}
-};
-device_acpi_driver(acpi_test_driver);
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


             reply	other threads:[~2022-01-10 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 10:48 Ahmad Fatoum [this message]
2022-01-17  9:10 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220110104831.3149574-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox