1 From b2691aee386b18425a7b96cca05e3bcceb8678ae Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 17 Apr 2020 16:20:55 +0100
4 Subject: [PATCH] Revert "firmware: raspberrypi: register clk device"
6 This reverts commit 91f2cf4a6b2131016b1ae9c9500245f0572112c7.
8 Revert this because the clock driver won't probe without a DT node, and
9 creating it as a platform device won't give it one. Doing so avoids the
10 following error message:
12 raspberrypi-clk raspberrypi-clk: Missing firmware node
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 drivers/firmware/raspberrypi.c | 10 ----------
17 1 file changed, 10 deletions(-)
19 --- a/drivers/firmware/raspberrypi.c
20 +++ b/drivers/firmware/raspberrypi.c
22 #define MBOX_CHAN_PROPERTY 8
24 static struct platform_device *rpi_hwmon;
25 -static struct platform_device *rpi_clk;
28 struct mbox_client cl;
29 @@ -299,12 +298,6 @@ rpi_register_hwmon_driver(struct device
33 -static void rpi_register_clk_driver(struct device *dev)
35 - rpi_clk = platform_device_register_data(dev, "raspberrypi-clk",
39 static int rpi_firmware_probe(struct platform_device *pdev)
41 struct device *dev = &pdev->dev;
42 @@ -334,7 +327,6 @@ static int rpi_firmware_probe(struct pla
43 rpi_firmware_print_firmware_revision(fw);
44 rpi_firmware_print_firmware_hash(fw);
45 rpi_register_hwmon_driver(dev, fw);
46 - rpi_register_clk_driver(dev);
50 @@ -355,8 +347,6 @@ static int rpi_firmware_remove(struct pl
52 platform_device_unregister(rpi_hwmon);
54 - platform_device_unregister(rpi_clk);
56 mbox_free_channel(fw->chan);