oxnas: revert to kernel 4.1
[openwrt/openwrt.git] / target / linux / oxnas / files / drivers / mtd / nand / oxnas_nand.c
index c96d66b2457f9dc3f15fc88bb345d26f6f18bea5..9536e5179cfd9e8b82e582d2700244f3e3792294 100644 (file)
@@ -56,10 +56,14 @@ static int oxnas_nand_probe(struct platform_device *pdev)
        return 0;
 }
 
+/* allow users to override the partition in DT using the cmdline */
+static const char * part_probes[] = { "cmdlinepart", "ofpart", NULL };
+
 static struct platform_nand_data oxnas_nand_data = {
        .chip = {
                .nr_chips               = 1,
                .chip_delay             = 30,
+               .part_probe_types       = part_probes,
        },
        .ctrl = {
                .probe          = oxnas_nand_probe,