~ubuntu-branches/ubuntu/precise/linux-linaro-u8500/precise

« back to all changes in this revision

Viewing changes to drivers/leds/leds-mc13783.c

  • Committer: Bazaar Package Importer
  • Author(s): John Rigby, Upstream Fixes, Andy Green, John Rigby
  • Date: 2011-04-14 12:16:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110414121606-b77podkyqgr2oix7
Tags: 2.6.38-1002.3
[ Upstream Fixes ]

* MUSB: shutdown: Make sure block is awake before doing shutdown
  - LP: #745737
* Fixed gpio polarity of gpio USB-phy reset.
  - LP: #747639

[ Andy Green ]

* LINARO: SAUCE: disable CONFIG_OMAP_RESET_CLOCKS
  - LP: #752900

[ John Rigby ]

* Rebase to new upstreams:
  Linux v2.6.38.1
  linaro-linux-2.6.38-upstream-29Mar2011
  Ubuntu-2.6.38-7.35
* SAUCE: OMAP4: clock: wait for module to become accessible on
  a clk enable
  - LP: #745737
* Rebase to new upstreams:
  Linux v2.6.38.2
  linaro-linux-2.6.38-upstream-5Apr2011
  Ubuntu-2.6.38-8.41
  - LP: #732842
* Update configs for device tree, dvfs and lttng
* LINARO: add building of dtb's
* LINARO: SAUCE: Disable lowest operating freqs on omap34xx
  - LP: #732912

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <linux/leds.h>
23
23
#include <linux/workqueue.h>
24
24
#include <linux/mfd/mc13783.h>
 
25
#include <linux/mfd/core.h>
25
26
#include <linux/slab.h>
26
27
 
27
28
struct mc13783_led {
183
184
 
184
185
static int __devinit mc13783_leds_prepare(struct platform_device *pdev)
185
186
{
186
 
        struct mc13783_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
 
187
        struct mc13783_leds_platform_data *pdata = mfd_get_data(pdev);
187
188
        struct mc13783 *dev = dev_get_drvdata(pdev->dev.parent);
188
189
        int ret = 0;
189
190
        int reg = 0;
264
265
 
265
266
static int __devinit mc13783_led_probe(struct platform_device *pdev)
266
267
{
267
 
        struct mc13783_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
 
268
        struct mc13783_leds_platform_data *pdata = mfd_get_data(pdev);
268
269
        struct mc13783_led_platform_data *led_cur;
269
270
        struct mc13783_led *led, *led_dat;
270
271
        int ret, i;
351
352
 
352
353
static int __devexit mc13783_led_remove(struct platform_device *pdev)
353
354
{
354
 
        struct mc13783_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
 
355
        struct mc13783_leds_platform_data *pdata = mfd_get_data(pdev);
355
356
        struct mc13783_led *led = platform_get_drvdata(pdev);
356
357
        struct mc13783 *dev = dev_get_drvdata(pdev->dev.parent);
357
358
        int i;