Trying to get MTD to do anything...

Todd Poynor tpoynor at
Thu Jan 12 16:04:15 EST 2006

>> This function simply does the following :
>>         return driver_register(&sandgate2_flash_driver);
>> and a printk in the function does display.
>> I am not sure what there is to fix. The driver gets registered, but probe is
>> never called. Its correctly added to the driver structure (in fact a direct
>> copy from the mainstone variant, but with name changes to match sandgate2) -
>> what else is there to debug?

Make sure the .name field of your struct device_driver exactly matches 
the .name field of your struct device that you (hopefully) registered in 
your board file (since you're using mainstone-flash as an example see 
arch/arm/mach-pxa/mainstone.c for the board device side of it).

If you think that's setup right then debug what's going on in 
drivers/base/platform.c: platform_match().


More information about the linux-mtd mailing list