mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'armsoc/for-3.12/soc' of git://github.com/broadcom/bcm11351 into next/boards
From Christian Daudt, SoC changes for Broadcom. * 'armsoc/for-3.12/soc' of git://github.com/broadcom/bcm11351: (673 commits) ARM: bcm: Make secure API call optional ARM: DT: binding fixup to align with vendor-prefixes.txt (drivers) ARM: mmc: fix NONREMOVABLE test in sdhci-bcm-kona ARM: bcm: Rename board_bcm mmc: sdhci-bcm-kona: make linker-section warning go away ARM: configs: disable DEBUG_LL in bcm_defconfig ARM: bcm281xx: Board specific reboot code ARM bcm281xx: Turn on socket & network support. ARM: bcm281xx: Turn on L2 cache. + Linux 3.11-rc4 Signed-off-by: Olof Johansson <[email protected]>
This commit is contained in:
commit
293d0e3bf0
718 changed files with 10780 additions and 6880 deletions
|
|
@ -435,8 +435,8 @@ static int correct_chipset(struct atyfb_par *par)
|
|||
const char *name;
|
||||
int i;
|
||||
|
||||
for (i = ARRAY_SIZE(aty_chips); i > 0; i--)
|
||||
if (par->pci_id == aty_chips[i - 1].pci_id)
|
||||
for (i = (int)ARRAY_SIZE(aty_chips) - 1; i >= 0; i--)
|
||||
if (par->pci_id == aty_chips[i].pci_id)
|
||||
break;
|
||||
|
||||
if (i < 0)
|
||||
|
|
|
|||
|
|
@ -101,33 +101,37 @@ static const struct backlight_ops max8925_backlight_ops = {
|
|||
.get_brightness = max8925_backlight_get_brightness,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static int max8925_backlight_dt_init(struct platform_device *pdev,
|
||||
struct max8925_backlight_pdata *pdata)
|
||||
static void max8925_backlight_dt_init(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *nproot = pdev->dev.parent->of_node, *np;
|
||||
int dual_string;
|
||||
struct max8925_backlight_pdata *pdata;
|
||||
u32 val;
|
||||
|
||||
if (!nproot || !IS_ENABLED(CONFIG_OF))
|
||||
return;
|
||||
|
||||
pdata = devm_kzalloc(&pdev->dev,
|
||||
sizeof(struct max8925_backlight_pdata),
|
||||
GFP_KERNEL);
|
||||
if (!pdata)
|
||||
return;
|
||||
|
||||
if (!nproot)
|
||||
return -ENODEV;
|
||||
np = of_find_node_by_name(nproot, "backlight");
|
||||
if (!np) {
|
||||
dev_err(&pdev->dev, "failed to find backlight node\n");
|
||||
return -ENODEV;
|
||||
return;
|
||||
}
|
||||
|
||||
of_property_read_u32(np, "maxim,max8925-dual-string", &dual_string);
|
||||
pdata->dual_string = dual_string;
|
||||
return 0;
|
||||
if (!of_property_read_u32(np, "maxim,max8925-dual-string", &val))
|
||||
pdata->dual_string = val;
|
||||
|
||||
pdev->dev.platform_data = pdata;
|
||||
}
|
||||
#else
|
||||
#define max8925_backlight_dt_init(x, y) (-1)
|
||||
#endif
|
||||
|
||||
static int max8925_backlight_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent);
|
||||
struct max8925_backlight_pdata *pdata = pdev->dev.platform_data;
|
||||
struct max8925_backlight_pdata *pdata;
|
||||
struct max8925_backlight_data *data;
|
||||
struct backlight_device *bl;
|
||||
struct backlight_properties props;
|
||||
|
|
@ -170,13 +174,10 @@ static int max8925_backlight_probe(struct platform_device *pdev)
|
|||
platform_set_drvdata(pdev, bl);
|
||||
|
||||
value = 0;
|
||||
if (pdev->dev.parent->of_node && !pdata) {
|
||||
pdata = devm_kzalloc(&pdev->dev,
|
||||
sizeof(struct max8925_backlight_pdata),
|
||||
GFP_KERNEL);
|
||||
max8925_backlight_dt_init(pdev, pdata);
|
||||
}
|
||||
if (!pdev->dev.platform_data)
|
||||
max8925_backlight_dt_init(pdev);
|
||||
|
||||
pdata = pdev->dev.platform_data;
|
||||
if (pdata) {
|
||||
if (pdata->lxw_scl)
|
||||
value |= (1 << 7);
|
||||
|
|
|
|||
|
|
@ -587,8 +587,7 @@ static int nuc900fb_probe(struct platform_device *pdev)
|
|||
fbinfo->flags = FBINFO_FLAG_DEFAULT;
|
||||
fbinfo->pseudo_palette = &fbi->pseudo_pal;
|
||||
|
||||
ret = request_irq(irq, nuc900fb_irqhandler, 0,
|
||||
pdev->name, fbinfo);
|
||||
ret = request_irq(irq, nuc900fb_irqhandler, 0, pdev->name, fbi);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "cannot register irq handler %d -err %d\n",
|
||||
irq, ret);
|
||||
|
|
|
|||
|
|
@ -713,7 +713,7 @@ static int sgivwfb_mmap(struct fb_info *info,
|
|||
r = vm_iomap_memory(vma, sgivwfb_mem_phys, sgivwfb_mem_size);
|
||||
|
||||
printk(KERN_DEBUG "sgivwfb: mmap framebuffer P(%lx)->V(%lx)\n",
|
||||
offset, vma->vm_start);
|
||||
sgivwfb_mem_phys + (vma->vm_pgoff << PAGE_SHIFT), vma->vm_start);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -567,7 +567,7 @@ static int sh7760fb_remove(struct platform_device *dev)
|
|||
fb_dealloc_cmap(&info->cmap);
|
||||
sh7760fb_free_mem(info);
|
||||
if (par->irq >= 0)
|
||||
free_irq(par->irq, par);
|
||||
free_irq(par->irq, &par->vsync);
|
||||
iounmap(par->base);
|
||||
release_mem_region(par->ioarea->start, resource_size(par->ioarea));
|
||||
framebuffer_release(info);
|
||||
|
|
|
|||
|
|
@ -1265,7 +1265,6 @@ static void vga16fb_imageblit(struct fb_info *info, const struct fb_image *image
|
|||
|
||||
static void vga16fb_destroy(struct fb_info *info)
|
||||
{
|
||||
struct platform_device *dev = container_of(info->device, struct platform_device, dev);
|
||||
iounmap(info->screen_base);
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
/* XXX unshare VGA regions */
|
||||
|
|
|
|||
|
|
@ -341,8 +341,8 @@ static int xilinxfb_assign(struct platform_device *pdev,
|
|||
|
||||
if (drvdata->flags & BUS_ACCESS_FLAG) {
|
||||
/* Put a banner in the log (for DEBUG) */
|
||||
dev_dbg(dev, "regs: phys=%x, virt=%p\n", drvdata->regs_phys,
|
||||
drvdata->regs);
|
||||
dev_dbg(dev, "regs: phys=%pa, virt=%p\n",
|
||||
&drvdata->regs_phys, drvdata->regs);
|
||||
}
|
||||
/* Put a banner in the log (for DEBUG) */
|
||||
dev_dbg(dev, "fb: phys=%llx, virt=%p, size=%x\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue