mtd: nand: fsmc: remove stale non-DT probe path

The FSMC driver has an execution path and a header file in
<linux/mtd/fsmc.h> that serves to support passing in platform
data through board files, albeit no upstream users of this
mechanism exist.

The header file also contains function headers for functions that
do not exist in the kernel.

Delete this and move the platform data struct, parsing and
handling into the driver, assume we are using OF and make the
driver depend on OF, remove the ifdefs making that optional.

Cc: Viresh Kumar <>
Cc: Stefan Roese <>
Cc: Vipin Kumar <>
Signed-off-by: Linus Walleij <>
Reviewed-by: Stefan Roese <>
Acked-by: Viresh Kumar <>
Signed-off-by: Boris Brezillon <>
3 files changed