Rev 3829 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3829 | Rev 4308 | ||
|---|---|---|---|
| Line 50... | Line 50... | ||
| 50 | 50 | ||
| 51 | int ofw_macio(macio_t *macio) |
51 | int ofw_macio(macio_t *macio) |
| 52 | { |
52 | { |
| 53 | char device_name[BUF_SIZE]; |
53 | char device_name[BUF_SIZE]; |
| 54 | 54 | ||
| 55 | if (ofw_get_property(ofw_aliases, "macio", device_name, sizeof(device_name)) <= 0) |
55 | if ((ofw_get_property(ofw_aliases, "macio", device_name, sizeof(device_name)) <= 0) |
| - | 56 | && (ofw_get_property(ofw_aliases, "mac-io", device_name, sizeof(device_name)) <= 0)) |
|
| 56 | return false; |
57 | return false; |
| 57 | 58 | ||
| 58 | phandle device = ofw_find_device(device_name); |
59 | phandle device = ofw_find_device(device_name); |
| 59 | if (device == -1) |
60 | if (device == -1) |
| 60 | return false; |
61 | return false; |