diff options
author | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-05-17 15:43:35 +0300 |
---|---|---|
committer | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-05-23 11:53:13 +0300 |
commit | d980c385f57d76cd26aec25453b3017ba004876b (patch) | |
tree | 707d45ee034993b06914d436368a74ae7e2814df /drivers/clk | |
parent | e4816c73b4b2c6c62d410f83998a8313e7adc521 (diff) | |
download | linux-d980c385f57d76cd26aec25453b3017ba004876b.tar.xz |
clk: aspeed: Don't convert pointer-to-const-char
Using pointer-to-char for local variable to store pointer-to-const-char
causes compilation warining:
drivers/clk/clk-aspeed.c:574:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
574 | parent_name = gd->parent_name;
|
Let's fix warning by changing local variable type to pointer-to-const-char.
Fixes: 51181b65c8d6 ("Add high speed baud rate support for UART")
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-aspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-aspeed.c b/drivers/clk/clk-aspeed.c index 5e1c87bc8a99..b266ee4c5478 100644 --- a/drivers/clk/clk-aspeed.c +++ b/drivers/clk/clk-aspeed.c @@ -561,7 +561,7 @@ static int aspeed_clk_probe(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(aspeed_gates); i++) { const struct aspeed_gate_data *gd = &aspeed_gates[i]; u32 gate_flags; - char *parent_name; + const char *parent_name; /* For uart, needs to adjust the clock based on SCU4C value */ if ((i == ASPEED_CLK_GATE_UART1CLK && (val & UART1_HS_CLK_EN)) || |