ARM: shmobile: kzm9g: Use of_machine_is_compatible()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 9 Jan 2013 00:52:42 +0000 (01:52 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:26:33 +0000 (09:26 +0900)
commitcf24450528094e44c8b20008b79ff60ff522152c
treec770590ff47cb054b1cc7690e4ea01413daf0dba
parent1a695b3d0fe70a680e60f28bac7aad5c95b88226
ARM: shmobile: kzm9g: Use of_machine_is_compatible()

The machine number is hardcoded to ~0 on DT-enabled machines, making
machine_is_*() always fail when support for more than one machine is
compiled into the kernel. Replace the machine_is_kzm9g() call with
of_machine_is_compatible("renesas,kzm9g").

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-kzm9g.c