From: Arvind Yadav Date: Thu, 24 Aug 2017 16:35:59 +0000 (+0530) Subject: coresight: etm3x: constify amba_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a13f6f917600985264ff3ef2bf75a14cf353b52f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git coresight: etm3x: constify amba_id amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 9c010eb9497f..e5b1ec57dbde 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -899,7 +899,7 @@ static const struct dev_pm_ops etm_dev_pm_ops = { SET_RUNTIME_PM_OPS(etm_runtime_suspend, etm_runtime_resume, NULL) }; -static struct amba_id etm_ids[] = { +static const struct amba_id etm_ids[] = { { /* ETM 3.3 */ .id = 0x0003b921, .mask = 0x0003ffff,