of: change of_match_device to work with struct device
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 13 Apr 2010 23:13:22 +0000 (16:13 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 22 May 2010 06:10:41 +0000 (00:10 -0600)
commit44504b2bebf8b5823c59484e73096a7d6574471d
treec4d901f026b499f6f0f5c64f4ecbdee297f5db1e
parent4018294b53d1dae026880e45f174c1cc63b5d435
of: change of_match_device to work with struct device

The of_node pointer is now stored directly in struct device, so
of_match_device() should work with any device, not just struct of_device.

This patch changes the interface to of_match_device() to accept a
struct device instead of struct of_device.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/macintosh/macio_asic.c
drivers/of/device.c
drivers/of/platform.c
include/linux/of_device.h