We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94885a0 + e0e68c3 commit 376cf59Copy full SHA for 376cf59
1 file changed
drivers/power/reset/at91-sama5d2_shdwc.c
@@ -68,7 +68,7 @@ struct shdwc_config {
68
};
69
70
struct shdwc {
71
- struct shdwc_config *cfg;
+ const struct shdwc_config *cfg;
72
void __iomem *at91_shdwc_base;
73
74
@@ -260,7 +260,7 @@ static int __init at91_shdwc_probe(struct platform_device *pdev)
260
}
261
262
match = of_match_node(at91_shdwc_of_match, pdev->dev.of_node);
263
- at91_shdwc->cfg = (struct shdwc_config *)(match->data);
+ at91_shdwc->cfg = match->data;
264
265
sclk = devm_clk_get(&pdev->dev, NULL);
266
if (IS_ERR(sclk))
0 commit comments