|
@@ -67,7 +67,7 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
|
|
|
if (of_property_read_u32(np, "clock-frequency", &clk)) {
|
|
|
|
|
|
/* Get clk rate through clk driver if present */
|
|
|
- info->clk = clk_get(&ofdev->dev, NULL);
|
|
|
+ info->clk = devm_clk_get(&ofdev->dev, NULL);
|
|
|
if (IS_ERR(info->clk)) {
|
|
|
dev_warn(&ofdev->dev,
|
|
|
"clk or clock-frequency not defined\n");
|