hw_random: starfive-trng: Standardize property "compatible"
authorHal Feng <hal.feng@starfivetech.com>
Tue, 30 Aug 2022 09:34:12 +0000 (17:34 +0800)
committerHal Feng <hal.feng@starfivetech.com>
Tue, 30 Aug 2022 09:34:12 +0000 (17:34 +0800)
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
drivers/char/hw_random/starfive-trng.c

index 65c039a..7a492ad 100755 (executable)
                };
 
                trng: trng@1600C000 {
-                       compatible = "starfive,trng";
+                       compatible = "starfive,jh7110-trng";
                        reg = <0x0 0x1600C000 0x0 0x4000>;
                        clocks = <&clkgen JH7110_SEC_HCLK>,
                                 <&clkgen JH7110_SEC_MISCAHB_CLK>;
index 7b58856..4c1051b 100644 (file)
@@ -374,7 +374,7 @@ static int trng_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id trng_dt_ids[] = {
-       { .compatible = "starfive,trng" },
+       { .compatible = "starfive,jh7110-trng" },
        { }
 };
 MODULE_DEVICE_TABLE(of, trng_dt_ids);