imx-audmux.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | imx-audmux.c (51451f46d1f3134235f3a332f919e2b7af87fd49) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5// Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> 6// 7// Initial development of this code was funded by 8// Phytec Messtechnik GmbH, https://www.phytec.de --- 301 unchanged lines hidden (view full) --- 310 if (!regcache) 311 return -ENOMEM; 312 313 imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node); 314 315 return 0; 316} 317 | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5// Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> 6// 7// Initial development of this code was funded by 8// Phytec Messtechnik GmbH, https://www.phytec.de --- 301 unchanged lines hidden (view full) --- 310 if (!regcache) 311 return -ENOMEM; 312 313 imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node); 314 315 return 0; 316} 317 |
318static int imx_audmux_remove(struct platform_device *pdev) | 318static void imx_audmux_remove(struct platform_device *pdev) |
319{ 320 if (audmux_type == IMX31_AUDMUX) 321 audmux_debugfs_remove(); | 319{ 320 if (audmux_type == IMX31_AUDMUX) 321 audmux_debugfs_remove(); |
322 323 return 0; | |
324} 325 326#ifdef CONFIG_PM_SLEEP 327static int imx_audmux_suspend(struct device *dev) 328{ 329 int i; 330 331 clk_prepare_enable(audmux_clk); --- 22 unchanged lines hidden (view full) --- 354#endif /* CONFIG_PM_SLEEP */ 355 356static const struct dev_pm_ops imx_audmux_pm = { 357 SET_SYSTEM_SLEEP_PM_OPS(imx_audmux_suspend, imx_audmux_resume) 358}; 359 360static struct platform_driver imx_audmux_driver = { 361 .probe = imx_audmux_probe, | 322} 323 324#ifdef CONFIG_PM_SLEEP 325static int imx_audmux_suspend(struct device *dev) 326{ 327 int i; 328 329 clk_prepare_enable(audmux_clk); --- 22 unchanged lines hidden (view full) --- 352#endif /* CONFIG_PM_SLEEP */ 353 354static const struct dev_pm_ops imx_audmux_pm = { 355 SET_SYSTEM_SLEEP_PM_OPS(imx_audmux_suspend, imx_audmux_resume) 356}; 357 358static struct platform_driver imx_audmux_driver = { 359 .probe = imx_audmux_probe, |
362 .remove = imx_audmux_remove, | 360 .remove_new = imx_audmux_remove, |
363 .driver = { 364 .name = DRIVER_NAME, 365 .pm = &imx_audmux_pm, 366 .of_match_table = imx_audmux_dt_ids, 367 } 368}; 369 370static int __init imx_audmux_init(void) --- 15 unchanged lines hidden --- | 361 .driver = { 362 .name = DRIVER_NAME, 363 .pm = &imx_audmux_pm, 364 .of_match_table = imx_audmux_dt_ids, 365 } 366}; 367 368static int __init imx_audmux_init(void) --- 15 unchanged lines hidden --- |