| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Marvell Armada 37xx SoC Time Base Generator clocks |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 Marvell |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This file is licensed under the terms of the GNU General Public |
|---|
| 9 | | - * License version 2 or later. This program is licensed "as is" |
|---|
| 10 | | - * without any warranty of any kind, whether express or implied. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/clk-provider.h> |
|---|
| 14 | 11 | #include <linux/clk.h> |
|---|
| 12 | +#include <linux/io.h> |
|---|
| 15 | 13 | #include <linux/of.h> |
|---|
| 16 | 14 | #include <linux/of_address.h> |
|---|
| 17 | 15 | #include <linux/platform_device.h> |
|---|
| .. | .. |
|---|
| 99 | 97 | hw_tbg_data->num = NUM_TBG; |
|---|
| 100 | 98 | platform_set_drvdata(pdev, hw_tbg_data); |
|---|
| 101 | 99 | |
|---|
| 102 | | - parent = devm_clk_get(dev, NULL); |
|---|
| 100 | + parent = clk_get(dev, NULL); |
|---|
| 103 | 101 | if (IS_ERR(parent)) { |
|---|
| 104 | 102 | dev_err(dev, "Could get the clock parent\n"); |
|---|
| 105 | 103 | return -EINVAL; |
|---|
| 106 | 104 | } |
|---|
| 107 | 105 | parent_name = __clk_get_name(parent); |
|---|
| 106 | + clk_put(parent); |
|---|
| 108 | 107 | |
|---|
| 109 | 108 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 110 | 109 | reg = devm_ioremap_resource(dev, res); |
|---|