hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/pnp/core.c
....@@ -51,7 +51,7 @@
5151 }
5252
5353 /**
54
- * pnp_protocol_register - adds a pnp protocol to the pnp layer
54
+ * pnp_register_protocol - adds a pnp protocol to the pnp layer
5555 * @protocol: pointer to the corresponding pnp_protocol structure
5656 *
5757 * Ex protocols: ISAPNP, PNPBIOS, etc
....@@ -91,7 +91,7 @@
9191 }
9292
9393 /**
94
- * pnp_protocol_unregister - removes a pnp protocol from the pnp layer
94
+ * pnp_unregister_protocol - removes a pnp protocol from the pnp layer
9595 * @protocol: pointer to the corresponding pnp_protocol structure
9696 */
9797 void pnp_unregister_protocol(struct pnp_protocol *protocol)
....@@ -160,14 +160,14 @@
160160 dev->dev.coherent_dma_mask = dev->dma_mask;
161161 dev->dev.release = &pnp_release_device;
162162
163
- dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
164
-
165163 dev_id = pnp_add_id(dev, pnpid);
166164 if (!dev_id) {
167165 kfree(dev);
168166 return NULL;
169167 }
170168
169
+ dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
170
+
171171 return dev;
172172 }
173173