On Mon, Jun 22, 2009 at 11:16:21AM +0200, Florian Fainelli wrote: > This patch makes the flash_setup code be compiled only when > CONFIG_MTD is set, it does make sense to register a physmap > platform driver without the MTD subsystem being enabled. No. A user might build the MTD subsystem as a module and then insert it into a running system so the idea is to always register the devices. This also keeps the information in /proc/iomem rsp. /proc/iostat and sysfs more useful. Ralf