drivers: perf: Rename riscv pmu sbi driver
That's just cosmetic, no functional changes. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com>
This commit is contained in:
parent
e8b785e98a
commit
d5ac062d82
@ -907,7 +907,7 @@ out_free:
|
|||||||
static struct platform_driver pmu_sbi_driver = {
|
static struct platform_driver pmu_sbi_driver = {
|
||||||
.probe = pmu_sbi_device_probe,
|
.probe = pmu_sbi_device_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = RISCV_PMU_PDEV_NAME,
|
.name = RISCV_PMU_SBI_PDEV_NAME,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -934,7 +934,7 @@ static int __init pmu_sbi_devinit(void)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
pdev = platform_device_register_simple(RISCV_PMU_PDEV_NAME, -1, NULL, 0);
|
pdev = platform_device_register_simple(RISCV_PMU_SBI_PDEV_NAME, -1, NULL, 0);
|
||||||
if (IS_ERR(pdev)) {
|
if (IS_ERR(pdev)) {
|
||||||
platform_driver_unregister(&pmu_sbi_driver);
|
platform_driver_unregister(&pmu_sbi_driver);
|
||||||
return PTR_ERR(pdev);
|
return PTR_ERR(pdev);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#define RISCV_MAX_COUNTERS 64
|
#define RISCV_MAX_COUNTERS 64
|
||||||
#define RISCV_OP_UNSUPP (-EOPNOTSUPP)
|
#define RISCV_OP_UNSUPP (-EOPNOTSUPP)
|
||||||
#define RISCV_PMU_PDEV_NAME "riscv-pmu"
|
#define RISCV_PMU_SBI_PDEV_NAME "riscv-pmu-sbi"
|
||||||
#define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy"
|
#define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy"
|
||||||
|
|
||||||
#define RISCV_PMU_STOP_FLAG_RESET 1
|
#define RISCV_PMU_STOP_FLAG_RESET 1
|
||||||
|
Loading…
Reference in New Issue
Block a user