imx-audmux.c (734d1ece37fbf3d2ddfc71bc6c69e0fe35f02542) imx-audmux.c (b25b5aa06667b01fee8fe2648d4ea9db32c87d1a)
1/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 * Copyright 2012 Linaro Ltd.
4 * Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
5 *
6 * Initial development of this code was funded by
7 * Phytec Messtechnik GmbH, http://www.phytec.de
8 *

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

247static int imx_audmux_probe(struct platform_device *pdev)
248{
249 struct resource *res;
250 struct pinctrl *pinctrl;
251 const struct of_device_id *of_id =
252 of_match_device(imx_audmux_dt_ids, &pdev->dev);
253
254 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 * Copyright 2012 Linaro Ltd.
4 * Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
5 *
6 * Initial development of this code was funded by
7 * Phytec Messtechnik GmbH, http://www.phytec.de
8 *

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

247static int imx_audmux_probe(struct platform_device *pdev)
248{
249 struct resource *res;
250 struct pinctrl *pinctrl;
251 const struct of_device_id *of_id =
252 of_match_device(imx_audmux_dt_ids, &pdev->dev);
253
254 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
255 audmux_base = devm_request_and_ioremap(&pdev->dev, res);
256 if (!audmux_base)
257 return -EADDRNOTAVAIL;
255 audmux_base = devm_ioremap_resource(&pdev->dev, res);
256 if (IS_ERR(audmux_base))
257 return PTR_ERR(audmux_base);
258
259 pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
260 if (IS_ERR(pinctrl)) {
261 dev_err(&pdev->dev, "setup pinctrl failed!");
262 return PTR_ERR(pinctrl);
263 }
264
265 audmux_clk = clk_get(&pdev->dev, "audmux");

--- 51 unchanged lines hidden ---
258
259 pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
260 if (IS_ERR(pinctrl)) {
261 dev_err(&pdev->dev, "setup pinctrl failed!");
262 return PTR_ERR(pinctrl);
263 }
264
265 audmux_clk = clk_get(&pdev->dev, "audmux");

--- 51 unchanged lines hidden ---