aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 22051ef04bd9..b1d738d12890 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -707,29 +707,14 @@ static int powerpc_debugfs_init(void)
707arch_initcall(powerpc_debugfs_init); 707arch_initcall(powerpc_debugfs_init);
708#endif 708#endif
709 709
710static int ppc_dflt_bus_notify(struct notifier_block *nb, 710void ppc_printk_progress(char *s, unsigned short hex)
711 unsigned long action, void *data)
712{ 711{
713 struct device *dev = data; 712 pr_info("%s\n", s);
714
715 /* We are only intereted in device addition */
716 if (action != BUS_NOTIFY_ADD_DEVICE)
717 return 0;
718
719 set_dma_ops(dev, &dma_direct_ops);
720
721 return NOTIFY_DONE;
722} 713}
723 714
724static struct notifier_block ppc_dflt_plat_bus_notifier = { 715void arch_setup_pdev_archdata(struct platform_device *pdev)
725 .notifier_call = ppc_dflt_bus_notify,
726 .priority = INT_MAX,
727};
728
729static int __init setup_bus_notifier(void)
730{ 716{
731 bus_register_notifier(&platform_bus_type, &ppc_dflt_plat_bus_notifier); 717 pdev->archdata.dma_mask = DMA_BIT_MASK(32);
732 return 0; 718 pdev->dev.dma_mask = &pdev->archdata.dma_mask;
719 set_dma_ops(&pdev->dev, &dma_direct_ops);
733} 720}
734
735arch_initcall(setup_bus_notifier);