From: Manuel Lauss Date: Tue, 14 Feb 2017 12:03:26 +0000 (+0100) Subject: MIPS: Alchemy: Add devboard machine type to cpuinfo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7f78c4ae70bae7f277f585066f4a859a5144739;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git MIPS: Alchemy: Add devboard machine type to cpuinfo Prints the devboard name in cpuinfo "machine" line. Signed-off-by: Manuel Lauss Cc: James Hogan Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/15285/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/alchemy/devboards/db1xxx.c b/arch/mips/alchemy/devboards/db1xxx.c index 2d47f951121a..c9ad28995cd2 100644 --- a/arch/mips/alchemy/devboards/db1xxx.c +++ b/arch/mips/alchemy/devboards/db1xxx.c @@ -2,6 +2,7 @@ * Alchemy DB/PB1xxx board support. */ +#include #include #include @@ -97,6 +98,7 @@ arch_initcall(db1xxx_arch_init); static int __init db1xxx_dev_init(void) { + mips_set_machine_name(board_type_str()); switch (BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI))) { case BCSR_WHOAMI_DB1000: case BCSR_WHOAMI_DB1500: