diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-01-08 19:52:42 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-01-24 19:26:33 -0500 |
commit | cf24450528094e44c8b20008b79ff60ff522152c (patch) | |
tree | c770590ff47cb054b1cc7690e4ea01413daf0dba /arch/arm/mach-shmobile | |
parent | 1a695b3d0fe70a680e60f28bac7aad5c95b88226 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index c02448d6847f..eadf309dd473 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
@@ -623,7 +623,7 @@ static int __init as3711_enable_lcdc_backlight(void) | |||
623 | 0x45, 0xf0, | 623 | 0x45, 0xf0, |
624 | }; | 624 | }; |
625 | 625 | ||
626 | if (!machine_is_kzm9g()) | 626 | if (!of_machine_is_compatible("renesas,kzm9g")) |
627 | return 0; | 627 | return 0; |
628 | 628 | ||
629 | if (!a) | 629 | if (!a) |