timer-stm32-lp.c (bb177282c46089d7cc30c1020c6f404070b87310) timer-stm32-lp.c (ede38f924a9e3c60382a13576347dc41967e8762)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Authors: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.
5 * Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
6 */
7
8#include <linux/clk.h>

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

190
191 return 0;
192
193out_clk_disable:
194 clk_disable_unprepare(ddata->clk);
195 return ret;
196}
197
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Authors: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.
5 * Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
6 */
7
8#include <linux/clk.h>

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

190
191 return 0;
192
193out_clk_disable:
194 clk_disable_unprepare(ddata->clk);
195 return ret;
196}
197
198static int stm32_clkevent_lp_remove(struct platform_device *pdev)
199{
200 return -EBUSY; /* cannot unregister clockevent */
201}
202
203static const struct of_device_id stm32_clkevent_lp_of_match[] = {
204 { .compatible = "st,stm32-lptimer-timer", },
205 {},
206};
207MODULE_DEVICE_TABLE(of, stm32_clkevent_lp_of_match);
208
209static struct platform_driver stm32_clkevent_lp_driver = {
198static const struct of_device_id stm32_clkevent_lp_of_match[] = {
199 { .compatible = "st,stm32-lptimer-timer", },
200 {},
201};
202MODULE_DEVICE_TABLE(of, stm32_clkevent_lp_of_match);
203
204static struct platform_driver stm32_clkevent_lp_driver = {
210 .probe = stm32_clkevent_lp_probe,
211 .remove = stm32_clkevent_lp_remove,
205 .probe = stm32_clkevent_lp_probe,
212 .driver = {
213 .name = "stm32-lptimer-timer",
214 .of_match_table = of_match_ptr(stm32_clkevent_lp_of_match),
206 .driver = {
207 .name = "stm32-lptimer-timer",
208 .of_match_table = of_match_ptr(stm32_clkevent_lp_of_match),
209 .suppress_bind_attrs = true,
215 },
216};
217module_platform_driver(stm32_clkevent_lp_driver);
218
219MODULE_ALIAS("platform:stm32-lptimer-timer");
220MODULE_DESCRIPTION("STMicroelectronics STM32 clockevent low power driver");
210 },
211};
212module_platform_driver(stm32_clkevent_lp_driver);
213
214MODULE_ALIAS("platform:stm32-lptimer-timer");
215MODULE_DESCRIPTION("STMicroelectronics STM32 clockevent low power driver");
216MODULE_LICENSE("GPL v2");