simplefb: Fix build failure on Sparc
authorHans de Goede <hdegoede@redhat.com>
Mon, 5 Jan 2015 08:15:16 +0000 (09:15 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 13 Jan 2015 11:25:16 +0000 (13:25 +0200)
commitd9e020197d371c90ad56cc4be388fc95e0c08e6f
treec1702a3aeeba59bafc0e086fca51cbbcb6c8a916
parenteaa27f34e91a14cdceed26ed6c6793ec1d186115
simplefb: Fix build failure on Sparc

of_platform_device_create is only defined when CONFIG_OF_ADDRESS is set,
which is normally always the case when CONFIG_OF is defined, except on Sparc,
so explicitly check for CONFIG_OF_ADDRESS rather then for CONFIG_OF.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/simplefb.c