Can't load module spi_mpc83xx : No such device

Dushara Jayasinghe DusharaJ at optiscan.com
Fri Feb 27 15:56:41 EST 2009


Hi all,

I'm using linux version 2.6.29-rc5.

I've compiled the SPI diver (spi_mpc83xx.c) as a module, but it fails the load with a "No such device" error.

I've managed to track it down to platform_driver_probe() in drivers/base/platform.c 
which returns -ENODEV because a device list is empty.

Not sure what I'm doing wrong. 

Part of my device tree is as follows:

	soc8349 at e0000000 {
		...
		spi at 7000 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "fsl,spi";
			reg = <0x7000 0x1000>;
			interrupts = <0x10 0x8>;
			interrupt-parent = < &ipic >;

			m25p40 at 2 {
				compatible = "m25p80";
				spi-max-frequency = <25000000>;
				reg = <2>;
			};
		};
		...
	};

Thanks
D




More information about the Linuxppc-dev mailing list