On 08:41 Tue 03 Sep , Antony Pavlov wrote: > On Tue, 3 Sep 2013 08:33:33 +0400 > Antony Pavlov <antonynpavlov@xxxxxxxxx> wrote: > > > Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> > > --- > > arch/mips/boards/qemu-malta/init.c | 31 ++----------------------------- > > arch/mips/configs/qemu-malta_defconfig | 1 + > > arch/mips/dts/qemu-malta.dts | 33 +++++++++++++++++++++++++++++++++ > > 3 files changed, 36 insertions(+), 29 deletions(-) > > > > diff --git a/arch/mips/boards/qemu-malta/init.c b/arch/mips/boards/qemu-malta/init.c > > index ddc90dc..4d12495 100644 > > --- a/arch/mips/boards/qemu-malta/init.c > > +++ b/arch/mips/boards/qemu-malta/init.c > > @@ -17,39 +17,12 @@ > > */ > > > > #include <common.h> > > -#include <types.h> > > -#include <driver.h> > > #include <init.h> > > -#include <ns16550.h> > > -#include <mach/hardware.h> > > -#include <partition.h> > > -#include <sizes.h> > > > > -static int malta_devices_init(void) > > +static int malta_core_init(void) > > { > > - add_cfi_flash_device(0, 0x1e000000, SZ_4M, 0); > > - > > - devfs_add_partition("nor0", 0x0, SZ_512K, DEVFS_PARTITION_FIXED, "self"); > > - devfs_add_partition("nor0", SZ_512K, SZ_64K, DEVFS_PARTITION_FIXED, "env0"); > > - > > - return 0; > > -} > > -device_initcall(malta_devices_init); > > - > > -static struct NS16550_plat serial_plat = { > > - .clock = 1843200, /* no matter for emulated port */ > > - .shift = 0, > > -}; > > - > > -static int malta_console_init(void) > > -{ > > - barebox_set_model("qemu malta"); > > barebox_set_hostname("malta"); > > > > May be it is reasonable to add hostname support to dts? > > The lonely barebox_set_hostname() in the malta board code looks very pathetically :) we could use the model propertie for this Best Regards, J. _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox