ipq806x: replace linux,part-probe with a proper partitions subnode
[openwrt/staging/wigyori.git] / target / linux / ipq806x / patches-4.9 / 0031-mtd-add-SMEM-parser-for-QCOM-platforms.patch
index ad0b09b115c7ad548915fab9c3c95c4943ba0ba0..a888b063a1517b783cf79d19b9546b2cc915faf9 100644 (file)
@@ -34,7 +34,7 @@ Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
  #
 --- /dev/null
 +++ b/drivers/mtd/qcom_smem_part.c
-@@ -0,0 +1,228 @@
+@@ -0,0 +1,235 @@
 +/*
 + * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 + *
@@ -240,10 +240,17 @@ Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
 +      return smem_parts->len;
 +}
 +
++static const struct of_device_id qcom_smem_of_match_table[] = {
++      { .compatible = "qcom,smem" },
++      {},
++};
++MODULE_DEVICE_TABLE(of, qcom_smem_of_match_table);
++
 +static struct mtd_part_parser qcom_smem_parser = {
 +      .owner = THIS_MODULE,
 +      .parse_fn = parse_qcom_smem_partitions,
 +      .name = "qcom-smem",
++      .of_match_table = qcom_smem_of_match_table,
 +};
 +
 +static int __init qcom_smem_parser_init(void)