spi: cadence: use to_platform_device()
authorGeliang Tang <geliangtang@163.com>
Fri, 1 Jan 2016 12:28:59 +0000 (20:28 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 11:34:23 +0000 (11:34 +0000)
commit9033a5f9ac83538502a2bddc62311b09d966799e
tree3216fb3a188777132e04e50b0b9fb915eeea1dfe
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
spi: cadence: use to_platform_device()

Use to_platform_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c