uartlite: Fix build on sparc.
authorDavid Miller <davem@davemloft.net>
Wed, 3 Mar 2010 10:50:26 +0000 (02:50 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:17:54 +0000 (07:17 -0700)
commitf157b58511e56d418eb582de96fedc4ea03d8061
tree3970689b55694714db91112afcc4e3f3f4dd4601
parent352fa6ad16b89f8ffd1a93b4419b1a8f2259feab
uartlite: Fix build on sparc.

We can get this driver enabled via MFD_TIMBERDALE which only
requires GPIO to be on.

But the of_address_to_resource() function is only present on
powerpc and microblaze, so we have to conditionalize the
CONFIG_OF probing bits on that.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/uartlite.c