From 04f1ea9e10b7c983d5055035854e4eb44464fec9 Mon Sep 17 00:00:00 2001 From: Beomho Seo Date: Fri, 22 Aug 2014 15:12:31 +0900 Subject: of: Add common FDT machine revision related function Some device depentent mchine revision. So this patch add get machine revision function. Machine revision get from device tree. If device tree haven't 'revision' property, function return zero. Change-Id: Ide2bdd314db334643e5acaabf31d8abc133a51dc Signed-off-by: Beomho Seo --- include/linux/of_fdt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 1573cac9704..279663c3f65 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -117,6 +117,7 @@ extern void early_init_dt_setup_initrd_arch(unsigned long start, extern int early_init_dt_scan_root(unsigned long node, const char *uname, int depth, void *data); +extern unsigned int of_flat_dt_get_machine_rev(void); extern char *of_flat_dt_get_machine_name(void); extern void *of_flat_dt_match_machine(void *default_match, void * (*get_next_compat)(const char * const**)); -- cgit v1.2.3