Dne 3.9.2015 v 08:20 Robert Jarzmik napsal(a): > Convert the pxa IRDA driver to readl and writel primitives, and remove > another set of direct registers access. This leaves only the DMA > registers access, which will be dealt with dmaengine conversion.
Test on magician (nonvanilla, but there should not be any collision). > > - err = request_mem_region(__PREG(STUART), 0x24, "IrDA") ? 0 : -EBUSY; > - if (err) > - goto err_mem_1; > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + ficp = devm_ioremap_resource(&pdev->dev, res); > + if (IS_ERR(ficp)) { > + dev_err(&pdev->dev, "resource ficp not defined\n"); Fails around here with: [ 4245.368764] pxa2xx-ir pxa2xx-ir: invalid resource [ 4245.369191] pxa2xx-ir pxa2xx-ir: resource ficp not defined [ 4245.369364] pxa2xx-ir: probe of pxa2xx-ir failed with error -22 Did you defined resources somewhere? Actual resources are in "pxa_ir_resources" variable at: http://lxr.free-electrons.com/source/arch/arm/mach-pxa/devices.c#L386 or this pdata should be moved into specific machine files? Cheers, Petr -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html