[PATCH 01/12] tegra: beaver: set hostname in board init

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 4 01:14:04 PST 2014


On Mon, Nov 03, 2014 at 11:52:13PM +0100, Lucas Stach wrote:
> Signed-off-by: Lucas Stach <dev at lynxeye.de>

Applied all, thanks

Sascha

> ---
>  arch/arm/boards/nvidia-beaver/board.c | 15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boards/nvidia-beaver/board.c b/arch/arm/boards/nvidia-beaver/board.c
> index 20707d8..d270301 100644
> --- a/arch/arm/boards/nvidia-beaver/board.c
> +++ b/arch/arm/boards/nvidia-beaver/board.c
> @@ -20,7 +20,7 @@
>  #include <i2c/i2c.h>
>  #include <init.h>
>  
> -static int nvidia_beaver_devices_init(void)
> +static int nvidia_beaver_fs_init(void)
>  {
>  	struct i2c_client client;
>  	u8 data;
> @@ -44,4 +44,15 @@ static int nvidia_beaver_devices_init(void)
>  
>  	return 0;
>  }
> -fs_initcall(nvidia_beaver_devices_init);
> +fs_initcall(nvidia_beaver_fs_init);
> +
> +static int nvidia_beaver_device_init(void)
> +{
> +	if (!of_machine_is_compatible("nvidia,beaver"))
> +		return 0;
> +
> +	barebox_set_hostname("beaver");
> +
> +	return 0;
> +}
> +device_initcall(nvidia_beaver_device_init);
> -- 
> 1.9.3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list