Re: [PATCH] of: Add empty of_get_next_parent() for !OF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
<ilkka.koskinen@xxxxxxxxxxxxxxx> wrote:
> From: Ilkka Koskinen <ilkka.koskinen@xxxxxxxxx>
>
> Add an empty version of of_get_next_parent() in order to avoid
> build error.

Some details on the build error and what introduced it please.

> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@xxxxxxxxxxxxxxx>
> ---
>  include/linux/of.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index dfde07e..416158f 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -425,6 +425,11 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
>         return NULL;
>  }
>
> +static inline struct device_node *of_get_next_parent(struct device_node *node)
> +{
> +       return NULL;
> +}
> +
>  static inline struct device_node *of_get_next_child(
>         const struct device_node *node, struct device_node *prev)
>  {
> --
> 1.9.1
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux