diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:38:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:38:49 -0500 |
commit | 7c2db36e730ee4facd341679ecb21ee73ba92831 (patch) | |
tree | 75016fba72aaf0581b9263f7fa4c565e6e634f3c /drivers/video/backlight/tdo24m.c | |
parent | 8b5628ab83b671f96ac9f174c1bd51c92589fc82 (diff) | |
parent | a47a376f1c025e23e836c0376813c0424de665c2 (diff) |
Merge branch 'akpm' (incoming from Andrew)
Merge misc patches from Andrew Morton:
- Florian has vanished so I appear to have become fbdev maintainer
again :(
- Joel and Mark are distracted to welcome to the new OCFS2 maintainer
- The backlight queue
- Small core kernel changes
- lib/ updates
- The rtc queue
- Various random bits
* akpm: (164 commits)
rtc: rtc-davinci: use devm_*() functions
rtc: rtc-max8997: use devm_request_threaded_irq()
rtc: rtc-max8907: use devm_request_threaded_irq()
rtc: rtc-da9052: use devm_request_threaded_irq()
rtc: rtc-wm831x: use devm_request_threaded_irq()
rtc: rtc-tps80031: use devm_request_threaded_irq()
rtc: rtc-lp8788: use devm_request_threaded_irq()
rtc: rtc-coh901331: use devm_clk_get()
rtc: rtc-vt8500: use devm_*() functions
rtc: rtc-tps6586x: use devm_request_threaded_irq()
rtc: rtc-imxdi: use devm_clk_get()
rtc: rtc-cmos: use dev_warn()/dev_dbg() instead of printk()/pr_debug()
rtc: rtc-pcf8583: use dev_warn() instead of printk()
rtc: rtc-sun4v: use pr_warn() instead of printk()
rtc: rtc-vr41xx: use dev_info() instead of printk()
rtc: rtc-rs5c313: use pr_err() instead of printk()
rtc: rtc-at91rm9200: use dev_dbg()/dev_err() instead of printk()/pr_debug()
rtc: rtc-rs5c372: use dev_dbg()/dev_warn() instead of printk()/pr_debug()
rtc: rtc-ds2404: use dev_err() instead of printk()
rtc: rtc-efi: use dev_err()/dev_warn()/pr_err() instead of printk()
...
Diffstat (limited to 'drivers/video/backlight/tdo24m.c')
-rw-r--r-- | drivers/video/backlight/tdo24m.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/backlight/tdo24m.c b/drivers/video/backlight/tdo24m.c index ad2325f3d652..00162085eec0 100644 --- a/drivers/video/backlight/tdo24m.c +++ b/drivers/video/backlight/tdo24m.c | |||
@@ -390,7 +390,7 @@ static int tdo24m_probe(struct spi_device *spi) | |||
390 | if (IS_ERR(lcd->lcd_dev)) | 390 | if (IS_ERR(lcd->lcd_dev)) |
391 | return PTR_ERR(lcd->lcd_dev); | 391 | return PTR_ERR(lcd->lcd_dev); |
392 | 392 | ||
393 | dev_set_drvdata(&spi->dev, lcd); | 393 | spi_set_drvdata(spi, lcd); |
394 | err = tdo24m_power(lcd, FB_BLANK_UNBLANK); | 394 | err = tdo24m_power(lcd, FB_BLANK_UNBLANK); |
395 | if (err) | 395 | if (err) |
396 | goto out_unregister; | 396 | goto out_unregister; |
@@ -404,7 +404,7 @@ out_unregister: | |||
404 | 404 | ||
405 | static int tdo24m_remove(struct spi_device *spi) | 405 | static int tdo24m_remove(struct spi_device *spi) |
406 | { | 406 | { |
407 | struct tdo24m *lcd = dev_get_drvdata(&spi->dev); | 407 | struct tdo24m *lcd = spi_get_drvdata(spi); |
408 | 408 | ||
409 | tdo24m_power(lcd, FB_BLANK_POWERDOWN); | 409 | tdo24m_power(lcd, FB_BLANK_POWERDOWN); |
410 | lcd_device_unregister(lcd->lcd_dev); | 410 | lcd_device_unregister(lcd->lcd_dev); |
@@ -415,14 +415,14 @@ static int tdo24m_remove(struct spi_device *spi) | |||
415 | #ifdef CONFIG_PM | 415 | #ifdef CONFIG_PM |
416 | static int tdo24m_suspend(struct spi_device *spi, pm_message_t state) | 416 | static int tdo24m_suspend(struct spi_device *spi, pm_message_t state) |
417 | { | 417 | { |
418 | struct tdo24m *lcd = dev_get_drvdata(&spi->dev); | 418 | struct tdo24m *lcd = spi_get_drvdata(spi); |
419 | 419 | ||
420 | return tdo24m_power(lcd, FB_BLANK_POWERDOWN); | 420 | return tdo24m_power(lcd, FB_BLANK_POWERDOWN); |
421 | } | 421 | } |
422 | 422 | ||
423 | static int tdo24m_resume(struct spi_device *spi) | 423 | static int tdo24m_resume(struct spi_device *spi) |
424 | { | 424 | { |
425 | struct tdo24m *lcd = dev_get_drvdata(&spi->dev); | 425 | struct tdo24m *lcd = spi_get_drvdata(spi); |
426 | 426 | ||
427 | return tdo24m_power(lcd, FB_BLANK_UNBLANK); | 427 | return tdo24m_power(lcd, FB_BLANK_UNBLANK); |
428 | } | 428 | } |
@@ -434,7 +434,7 @@ static int tdo24m_resume(struct spi_device *spi) | |||
434 | /* Power down all displays on reboot, poweroff or halt */ | 434 | /* Power down all displays on reboot, poweroff or halt */ |
435 | static void tdo24m_shutdown(struct spi_device *spi) | 435 | static void tdo24m_shutdown(struct spi_device *spi) |
436 | { | 436 | { |
437 | struct tdo24m *lcd = dev_get_drvdata(&spi->dev); | 437 | struct tdo24m *lcd = spi_get_drvdata(spi); |
438 | 438 | ||
439 | tdo24m_power(lcd, FB_BLANK_POWERDOWN); | 439 | tdo24m_power(lcd, FB_BLANK_POWERDOWN); |
440 | } | 440 | } |