ARM: pxa3xx: provide specific platform_devices for all ssp ports
authorDaniel Mack <zonque@gmail.com>
Wed, 13 Aug 2014 19:59:19 +0000 (21:59 +0200)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 18 Sep 2014 17:58:43 +0000 (01:58 +0800)
commit0da0e227477fdf7c7712ab973621630ba88aebcb
treee80f99b009b810e39fe8f88a20c04b106d459e4f
parent6f0243a1ec55e7140f69629b53e105d0715ef31b
ARM: pxa3xx: provide specific platform_devices for all ssp ports

Currently, devices for SSP ports 1, 2 and 3 are registered as compatible
devices to pxa27x-ssp. While the actual IP core is comparable, there are
some subtle differences which users of the SSP ports address by looking at
the 'type' field.

By registering devices of type 'pxa27x-ssp', this 'type' field is
incorrectly set to PXA27x_SSP which confuses the users.

To fix this, provide specific ssp port plaform devices which use
'pxa3xx-ssp' as driver name, an instantiate them from pxa3xx.c.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
arch/arm/mach-pxa/devices.c
arch/arm/mach-pxa/devices.h
arch/arm/mach-pxa/pxa3xx.c