[PATCH] generic check_legacy_ioport
Milton Miller
miltonm at bga.com
Wed Apr 25 01:45:22 EST 2007
On Tue Apr 24 21:25:30 EST 2007, Olaf Hering wrote:
> Thats how it may look finally, currently only compile tested.
>
> int check_legacy_ioport(unsigned long base_port)
> {
> struct device_node *parent, *np = NULL;
> int ret = -ENODEV;
...
> if (np) {
> parent = of_get_parent(np);
> if (parent) {
> ret = strcmp(parent->type, "isa");
This calculates the return as 0 / anything, vs 0 / -ENODEV.
> of_node_put(parent);
> }
> of_node_put(np);
> }
> return ret;
> }
More information about the Linuxppc-dev
mailing list