Files
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
![]() |
From d58ad83eaf72e072d0e0205847ab4332dba24cd0 Mon Sep 17 00:00:00 2001
|
||
|
From: Samuel Holland <samuel@sholland.org>
|
||
|
Date: Mon, 30 Dec 2019 17:12:42 -0600
|
||
|
Subject: [PATCH 11/31] bus: sunxi-rsb: Move OF match table
|
||
|
|
||
|
For some reason, this driver's OF match table was placed above the
|
||
|
probe/remove functions, far away from the platform_driver definition.
|
||
|
Adding device PM ops would move the table even farther away. Let's move
|
||
|
it to the usual place, right before the platform_driver.
|
||
|
|
||
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
||
|
---
|
||
|
drivers/bus/sunxi-rsb.c | 12 ++++++------
|
||
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
||
|
|
||
|
--- a/drivers/bus/sunxi-rsb.c
|
||
|
+++ b/drivers/bus/sunxi-rsb.c
|
||
|
@@ -585,12 +585,6 @@ static int of_rsb_register_devices(struc
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
-static const struct of_device_id sunxi_rsb_of_match_table[] = {
|
||
|
- { .compatible = "allwinner,sun8i-a23-rsb" },
|
||
|
- {}
|
||
|
-};
|
||
|
-MODULE_DEVICE_TABLE(of, sunxi_rsb_of_match_table);
|
||
|
-
|
||
|
static int sunxi_rsb_probe(struct platform_device *pdev)
|
||
|
{
|
||
|
struct device *dev = &pdev->dev;
|
||
|
@@ -717,6 +711,12 @@ static int sunxi_rsb_remove(struct platf
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+static const struct of_device_id sunxi_rsb_of_match_table[] = {
|
||
|
+ { .compatible = "allwinner,sun8i-a23-rsb" },
|
||
|
+ {}
|
||
|
+};
|
||
|
+MODULE_DEVICE_TABLE(of, sunxi_rsb_of_match_table);
|
||
|
+
|
||
|
static struct platform_driver sunxi_rsb_driver = {
|
||
|
.probe = sunxi_rsb_probe,
|
||
|
.remove = sunxi_rsb_remove,
|