atmel-ssc.c (2d6bed9ca93e98685bc5038d686984fd449cd978) atmel-ssc.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84)
1/*
2 * Atmel SSC driver
3 *
4 * Copyright (C) 2007 Atmel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

132out_clk:
133 clk_put(ssc->clk);
134out_free:
135 kfree(ssc);
136out:
137 return retval;
138}
139
1/*
2 * Atmel SSC driver
3 *
4 * Copyright (C) 2007 Atmel Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

132out_clk:
133 clk_put(ssc->clk);
134out_free:
135 kfree(ssc);
136out:
137 return retval;
138}
139
140static int __devexit ssc_remove(struct platform_device *pdev)
140static int ssc_remove(struct platform_device *pdev)
141{
142 struct ssc_device *ssc = platform_get_drvdata(pdev);
143
144 spin_lock(&user_lock);
145 iounmap(ssc->regs);
146 clk_put(ssc->clk);
147 list_del(&ssc->list);
148 kfree(ssc);

--- 29 unchanged lines hidden ---
141{
142 struct ssc_device *ssc = platform_get_drvdata(pdev);
143
144 spin_lock(&user_lock);
145 iounmap(ssc->regs);
146 clk_put(ssc->clk);
147 list_del(&ssc->list);
148 kfree(ssc);

--- 29 unchanged lines hidden ---