clk-twl6040.c (dbe30538771b7c9811e397c7ce50db546209b4f6) clk-twl6040.c (ddc07ef9499509200033be7e387feb6c83744a73)
1/*
2* TWL6040 clock module driver for OMAP4 McPDM functional clock
3*
4* Copyright (C) 2012 Texas Instruments Inc.
5* Peter Ujfalusi <peter.ujfalusi@ti.com>
6*
7* This program is free software; you can redistribute it and/or
8* modify it under the terms of the GNU General Public License

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

87 if (!clkdata)
88 return -ENOMEM;
89
90 clkdata->dev = &pdev->dev;
91 clkdata->twl6040 = twl6040;
92
93 clkdata->mcpdm_fclk.init = &wm831x_clkout_init;
94 clkdata->clk = clk_register(&pdev->dev, &clkdata->mcpdm_fclk);
1/*
2* TWL6040 clock module driver for OMAP4 McPDM functional clock
3*
4* Copyright (C) 2012 Texas Instruments Inc.
5* Peter Ujfalusi <peter.ujfalusi@ti.com>
6*
7* This program is free software; you can redistribute it and/or
8* modify it under the terms of the GNU General Public License

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

87 if (!clkdata)
88 return -ENOMEM;
89
90 clkdata->dev = &pdev->dev;
91 clkdata->twl6040 = twl6040;
92
93 clkdata->mcpdm_fclk.init = &wm831x_clkout_init;
94 clkdata->clk = clk_register(&pdev->dev, &clkdata->mcpdm_fclk);
95 if (!clkdata->clk)
96 return -EINVAL;
95 if (IS_ERR(clkdata->clk))
96 return PTR_ERR(clkdata->clk);
97
98 dev_set_drvdata(&pdev->dev, clkdata);
99
100 return 0;
101}
102
103static int __devexit twl6040_clk_remove(struct platform_device *pdev)
104{

--- 22 unchanged lines hidden ---
97
98 dev_set_drvdata(&pdev->dev, clkdata);
99
100 return 0;
101}
102
103static int __devexit twl6040_clk_remove(struct platform_device *pdev)
104{

--- 22 unchanged lines hidden ---