platform.c (1913c7f3fc2514e09262baf2267a82dfdb215c39) platform.c (f27c22736d133baff0ab3fdc7b015d998267d817)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Platform driver for the Synopsys DesignWare DMA Controller
4 *
5 * Copyright (C) 2007-2008 Atmel Corporation
6 * Copyright (C) 2010-2011 ST Microelectronics
7 * Copyright (C) 2013 Intel Corporation
8 *

--- 52 unchanged lines hidden (view full) ---

61 data->pdata = dw_dma_parse_dt(pdev);
62
63 chip->dev = dev;
64 chip->id = pdev->id;
65 chip->pdata = data->pdata;
66
67 data->chip = chip;
68
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Platform driver for the Synopsys DesignWare DMA Controller
4 *
5 * Copyright (C) 2007-2008 Atmel Corporation
6 * Copyright (C) 2010-2011 ST Microelectronics
7 * Copyright (C) 2013 Intel Corporation
8 *

--- 52 unchanged lines hidden (view full) ---

61 data->pdata = dw_dma_parse_dt(pdev);
62
63 chip->dev = dev;
64 chip->id = pdev->id;
65 chip->pdata = data->pdata;
66
67 data->chip = chip;
68
69 chip->clk = devm_clk_get(chip->dev, "hclk");
69 chip->clk = devm_clk_get_optional(chip->dev, "hclk");
70 if (IS_ERR(chip->clk))
71 return PTR_ERR(chip->clk);
72 err = clk_prepare_enable(chip->clk);
73 if (err)
74 return err;
75
76 pm_runtime_enable(&pdev->dev);
77

--- 142 unchanged lines hidden ---
70 if (IS_ERR(chip->clk))
71 return PTR_ERR(chip->clk);
72 err = clk_prepare_enable(chip->clk);
73 if (err)
74 return err;
75
76 pm_runtime_enable(&pdev->dev);
77

--- 142 unchanged lines hidden ---