]> git.neil.brown.name Git - history.git/commitdiff
[PNP] re-add the previously removed "get" command in interface.c.
authorAdam Belay <ambx1@neo.rr.com>
Wed, 18 Jun 2003 22:34:14 +0000 (22:34 +0000)
committerAdam Belay <ambx1@neo.rr.com>
Wed, 18 Jun 2003 22:34:14 +0000 (22:34 +0000)
This patch adds the "get" command because at this point it is needed
for debugging.

drivers/pnp/interface.c

index adf85eb325c31439a6dbb353422e0370f5998b9e..5ce57358df3b2b7146b694057ce6eebe96e91b21 100644 (file)
@@ -333,6 +333,13 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count
                pnp_init_resources(&dev->res);
                goto done;
        }
+       if (!strnicmp(buf,"get",3)) {
+               down(&pnp_res_mutex);
+               if (pnp_can_read(dev))
+                       dev->protocol->get(dev, &dev->res);
+               up(&pnp_res_mutex);
+               goto done;
+       }
        if (!strnicmp(buf,"set",3)) {
                int nport = 0, nmem = 0, nirq = 0, ndma = 0;
                if (dev->active)