diff options
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 27 |
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) | |||
707 | arch_initcall(powerpc_debugfs_init); | 707 | arch_initcall(powerpc_debugfs_init); |
708 | #endif | 708 | #endif |
709 | 709 | ||
710 | static int ppc_dflt_bus_notify(struct notifier_block *nb, | 710 | void 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 | ||
724 | static struct notifier_block ppc_dflt_plat_bus_notifier = { | 715 | void arch_setup_pdev_archdata(struct platform_device *pdev) |
725 | .notifier_call = ppc_dflt_bus_notify, | ||
726 | .priority = INT_MAX, | ||
727 | }; | ||
728 | |||
729 | static 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 | |||
735 | arch_initcall(setup_bus_notifier); | ||