of: add 'of_' prefix to machine_is_compatible()
machine is compatible is an OF-specific call. It should have the of_ prefix to protect the global namespace. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
@@ -224,7 +224,7 @@ long sys_pciconfig_iobase(long which, unsigned long in_bus,
|
||||
* G5 machines... So when something asks for bus 0 io base
|
||||
* (bus 0 is HT root), we return the AGP one instead.
|
||||
*/
|
||||
if (in_bus == 0 && machine_is_compatible("MacRISC4")) {
|
||||
if (in_bus == 0 && of_machine_is_compatible("MacRISC4")) {
|
||||
struct device_node *agp;
|
||||
|
||||
agp = of_find_compatible_node(NULL, NULL, "u3-agp");
|
||||
|
Reference in New Issue
Block a user