From 9bd42158c0bdcdd0831c382982d169fd5fa59fb7 Mon Sep 17 00:00:00 2001 From: Xingyu Wu Date: Thu, 1 Sep 2022 15:13:04 +0800 Subject: [PATCH] spi:starfive:Modify compatible name Modify compatible name to 'starfive,jh7110-spi-pl022'. Signed-off-by: Xingyu Wu --- .../dts/starfive/evb-overlay/jh7110-evb-overlay-spi.dts | 14 +++++++------- drivers/spi/spi-pl022-starfive.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/evb-overlay/jh7110-evb-overlay-spi.dts b/arch/riscv/boot/dts/starfive/evb-overlay/jh7110-evb-overlay-spi.dts index 58e0deb..366592d 100755 --- a/arch/riscv/boot/dts/starfive/evb-overlay/jh7110-evb-overlay-spi.dts +++ b/arch/riscv/boot/dts/starfive/evb-overlay/jh7110-evb-overlay-spi.dts @@ -9,7 +9,7 @@ fragment@0 { target-path = "/soc/spi@10060000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -18,7 +18,7 @@ fragment@1 { target-path = "/soc/spi@10070000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -27,7 +27,7 @@ fragment@2 { target-path = "/soc/spi@10080000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -36,7 +36,7 @@ fragment@3 { target-path = "/soc/spi@12070000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -45,7 +45,7 @@ fragment@4 { target-path = "/soc/spi@12080000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -54,7 +54,7 @@ fragment@5 { target-path = "/soc/spi@12090000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; @@ -63,7 +63,7 @@ fragment@6 { target-path = "/soc/spi@120A0000"; __overlay__ { - compatible = "starfive-of,pl022"; + compatible = "starfive,jh7110-spi-pl022"; status = "okay"; }; }; diff --git a/drivers/spi/spi-pl022-starfive.c b/drivers/spi/spi-pl022-starfive.c index dcc6551..c783cc9 100755 --- a/drivers/spi/spi-pl022-starfive.c +++ b/drivers/spi/spi-pl022-starfive.c @@ -2601,14 +2601,14 @@ static int starfive_of_pl022_remove(struct platform_device *pdev) } static const struct of_device_id starfive_of_pl022_match[] = { - { .compatible = "starfive-of,pl022" }, + { .compatible = "starfive,jh7110-spi-pl022" }, { }, }; MODULE_DEVICE_TABLE(of, starfive_of_pl022_match); static struct platform_driver starfive_of_pl022_driver = { .driver = { - .name = "starfive-pl022", + .name = "starfive-spi-pl022", .of_match_table = starfive_of_pl022_match, .pm = &pl022_dev_pm_ops, }, -- 2.7.4