pinctrl-imx.c (66e72a01b60ae6950ddbb3585fdc1424d303e14b) | pinctrl-imx.c (811e62c80a879d717f7bd4a293eb2c66ed4560ba) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Core driver for the imx pin controller 4// 5// Copyright (C) 2012 Freescale Semiconductor, Inc. 6// Copyright (C) 2012 Linaro Ltd. 7// 8// Author: Dong Aisheng <dong.aisheng@linaro.org> --- 790 unchanged lines hidden (view full) --- 799 } 800 801 dev_info(&pdev->dev, "initialized IMX pinctrl driver\n"); 802 803 return pinctrl_enable(ipctl->pctl); 804} 805EXPORT_SYMBOL_GPL(imx_pinctrl_probe); 806 | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Core driver for the imx pin controller 4// 5// Copyright (C) 2012 Freescale Semiconductor, Inc. 6// Copyright (C) 2012 Linaro Ltd. 7// 8// Author: Dong Aisheng <dong.aisheng@linaro.org> --- 790 unchanged lines hidden (view full) --- 799 } 800 801 dev_info(&pdev->dev, "initialized IMX pinctrl driver\n"); 802 803 return pinctrl_enable(ipctl->pctl); 804} 805EXPORT_SYMBOL_GPL(imx_pinctrl_probe); 806 |
807static int __maybe_unused imx_pinctrl_suspend(struct device *dev) | 807static int imx_pinctrl_suspend(struct device *dev) |
808{ 809 struct imx_pinctrl *ipctl = dev_get_drvdata(dev); 810 811 return pinctrl_force_sleep(ipctl->pctl); 812} 813 | 808{ 809 struct imx_pinctrl *ipctl = dev_get_drvdata(dev); 810 811 return pinctrl_force_sleep(ipctl->pctl); 812} 813 |
814static int __maybe_unused imx_pinctrl_resume(struct device *dev) | 814static int imx_pinctrl_resume(struct device *dev) |
815{ 816 struct imx_pinctrl *ipctl = dev_get_drvdata(dev); 817 818 return pinctrl_force_default(ipctl->pctl); 819} 820 821const struct dev_pm_ops imx_pinctrl_pm_ops = { | 815{ 816 struct imx_pinctrl *ipctl = dev_get_drvdata(dev); 817 818 return pinctrl_force_default(ipctl->pctl); 819} 820 821const struct dev_pm_ops imx_pinctrl_pm_ops = { |
822 SET_LATE_SYSTEM_SLEEP_PM_OPS(imx_pinctrl_suspend, 823 imx_pinctrl_resume) | 822 LATE_SYSTEM_SLEEP_PM_OPS(imx_pinctrl_suspend, imx_pinctrl_resume) |
824}; 825EXPORT_SYMBOL_GPL(imx_pinctrl_pm_ops); 826 827MODULE_AUTHOR("Dong Aisheng <aisheng.dong@nxp.com>"); 828MODULE_DESCRIPTION("NXP i.MX common pinctrl driver"); 829MODULE_LICENSE("GPL v2"); | 823}; 824EXPORT_SYMBOL_GPL(imx_pinctrl_pm_ops); 825 826MODULE_AUTHOR("Dong Aisheng <aisheng.dong@nxp.com>"); 827MODULE_DESCRIPTION("NXP i.MX common pinctrl driver"); 828MODULE_LICENSE("GPL v2"); |