Revert "of: use platform_device_add"
authorGrant Likely <grant.likely@secretlab.ca>
Sun, 17 Feb 2013 20:03:27 +0000 (20:03 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 17 Feb 2013 20:03:27 +0000 (20:03 +0000)
commit02bbde7849e68e193cefaa1885fe0df0f03c9fcd
tree788a1d2226a1aa3a8bbcf58dfe9739f869ea7be0
parente570d7c15a73f88942885881a84257a65fa44c80
Revert "of: use platform_device_add"

This reverts commit aac73f34542bc7ae4317928d2eabfeb21d247323. That
commit causes two kinds of breakage; it breaks registration of AMBA
devices when one of the parent nodes already contains overlapping
resource regions, and it breaks calls to request_region() by device
drivers in certain conditions where there are overlapping memory
regions. Both of these problems can probably be fixed, but it is better
to back out the commit and get a proper fix designed before trying again.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/platform.c