]> Pileus Git - ~andy/linux/commit
ARM: 6977/1: pmu: add platform_device_id table support
authorMark Rutland <mark.rutland@arm.com>
Wed, 22 Jun 2011 14:34:56 +0000 (15:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 29 Jun 2011 09:27:09 +0000 (10:27 +0100)
commite4b6381009d740bd3a97e6b841d8efe7fc70c1b7
treeb461d1c8c6f442658106aba9fdf05138578c0eaf
parente73c34c3d522a60d9f7b38a7683076362bad98f5
ARM: 6977/1: pmu: add platform_device_id table support

This patch adds support for platform_device_id tables, allowing new
PMU types to be registered with the correct type, without requiring
new platform_driver shims to provide the type. An single entry for
existing devices is provided.

Macros matching functionality of the of_device_id table macros are
provided for convenience.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/pmu.c