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

« back to all changes in this revision

Viewing changes to drivers/video/tmiofb.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:
250
250
 */
251
251
static int tmiofb_hw_stop(struct platform_device *dev)
252
252
{
253
 
        struct mfd_cell *cell = dev->dev.platform_data;
254
 
        struct tmio_fb_data *data = cell->driver_data;
 
253
        struct tmio_fb_data *data = mfd_get_data(dev);
255
254
        struct fb_info *info = platform_get_drvdata(dev);
256
255
        struct tmiofb_par *par = info->par;
257
256
 
268
267
 */
269
268
static int tmiofb_hw_init(struct platform_device *dev)
270
269
{
271
 
        struct mfd_cell *cell = dev->dev.platform_data;
 
270
        const struct mfd_cell *cell = mfd_get_cell(dev);
272
271
        struct fb_info *info = platform_get_drvdata(dev);
273
272
        struct tmiofb_par *par = info->par;
274
273
        const struct resource *nlcr = &cell->resources[0];
312
311
 */
313
312
static void tmiofb_hw_mode(struct platform_device *dev)
314
313
{
315
 
        struct mfd_cell *cell = dev->dev.platform_data;
316
 
        struct tmio_fb_data *data = cell->driver_data;
 
314
        struct tmio_fb_data *data = mfd_get_data(dev);
317
315
        struct fb_info *info = platform_get_drvdata(dev);
318
316
        struct fb_videomode *mode = info->mode;
319
317
        struct tmiofb_par *par = info->par;
559
557
static struct fb_videomode *
560
558
tmiofb_find_mode(struct fb_info *info, struct fb_var_screeninfo *var)
561
559
{
562
 
        struct mfd_cell *cell =
563
 
                info->device->platform_data;
564
 
        struct tmio_fb_data *data = cell->driver_data;
 
560
        struct tmio_fb_data *data =
 
561
                        mfd_get_data(to_platform_device(info->device));
565
562
        struct fb_videomode *best = NULL;
566
563
        int i;
567
564
 
581
578
{
582
579
 
583
580
        struct fb_videomode *mode;
584
 
        struct mfd_cell *cell =
585
 
                info->device->platform_data;
586
 
        struct tmio_fb_data *data = cell->driver_data;
 
581
        struct tmio_fb_data *data =
 
582
                        mfd_get_data(to_platform_device(info->device));
587
583
 
588
584
        mode = tmiofb_find_mode(info, var);
589
585
        if (!mode || var->bits_per_pixel > 16)
683
679
 
684
680
static int __devinit tmiofb_probe(struct platform_device *dev)
685
681
{
686
 
        struct mfd_cell *cell = dev->dev.platform_data;
687
 
        struct tmio_fb_data *data = cell->driver_data;
 
682
        const struct mfd_cell *cell = mfd_get_cell(dev);
 
683
        struct tmio_fb_data *data = mfd_get_data(dev);
688
684
        struct resource *ccr = platform_get_resource(dev, IORESOURCE_MEM, 1);
689
685
        struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0);
690
686
        struct resource *vram = platform_get_resource(dev, IORESOURCE_MEM, 2);
811
807
 
812
808
static int __devexit tmiofb_remove(struct platform_device *dev)
813
809
{
814
 
        struct mfd_cell *cell = dev->dev.platform_data;
 
810
        const struct mfd_cell *cell = mfd_get_cell(dev);
815
811
        struct fb_info *info = platform_get_drvdata(dev);
816
812
        int irq = platform_get_irq(dev, 0);
817
813
        struct tmiofb_par *par;
941
937
#ifdef CONFIG_FB_TMIO_ACCELL
942
938
        struct tmiofb_par *par = info->par;
943
939
#endif
944
 
        struct mfd_cell *cell = dev->dev.platform_data;
 
940
        const struct mfd_cell *cell = mfd_get_cell(dev);
945
941
        int retval = 0;
946
942
 
947
943
        console_lock();
973
969
static int tmiofb_resume(struct platform_device *dev)
974
970
{
975
971
        struct fb_info *info = platform_get_drvdata(dev);
976
 
        struct mfd_cell *cell = dev->dev.platform_data;
 
972
        const struct mfd_cell *cell = mfd_get_cell(dev);
977
973
        int retval = 0;
978
974
 
979
975
        console_lock();