[PATCH 3/9] of/base.c: export property access/modification functions

Grant Likely grant.likely at secretlab.ca
Wed Aug 11 04:14:56 EST 2010


On Fri, Jul 23, 2010 at 2:57 PM, Stephen Neuendorffer
<stephen.neuendorffer at xilinx.com> wrote:
> These functions can be usefully used by device drivers.
>
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
> ---
>  drivers/of/base.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Looks good.  Use EXPORT_SYMBOL_GPL instead though please.

g.

>
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index e3f7af8..9ee27f6 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -763,6 +763,7 @@ int prom_add_property(struct device_node *np, struct property *prop)
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_add_property);
>
>  /**
>  * prom_remove_property - Remove a property from a node.
> @@ -804,6 +805,7 @@ int prom_remove_property(struct device_node *np, struct property *prop)
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_remove_property);
>
>  /*
>  * prom_update_property - Update a property in a node.
> @@ -848,6 +850,7 @@ int prom_update_property(struct device_node *np,
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_update_property);
>
>  #if defined(CONFIG_OF_DYNAMIC)
>  /*
> --
> 1.5.6.6
>
>
>
> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
>
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the devicetree-discuss mailing list