hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/dio/dio-driver.c
....@@ -25,7 +25,7 @@
2525 * dio_device_id structure or %NULL if there is no match.
2626 */
2727
28
-const struct dio_device_id *
28
+static const struct dio_device_id *
2929 dio_match_device(const struct dio_device_id *ids,
3030 const struct dio_dev *d)
3131 {
....@@ -105,9 +105,9 @@
105105 * @dev: the DIO device structure to match against
106106 * @drv: the &device_driver that points to the array of DIO device id structures to search
107107 *
108
- * Used by a driver to check whether a DIO device present in the
109
- * system is in its list of supported devices. Returns the matching
110
- * dio_device_id structure or %NULL if there is no match.
108
+ * Used by the driver core to check whether a DIO device present in the
109
+ * system is in a driver's list of supported devices. Returns 1 if supported,
110
+ * and 0 if there is no match.
111111 */
112112
113113 static int dio_bus_match(struct device *dev, struct device_driver *drv)
....@@ -137,7 +137,6 @@
137137
138138 postcore_initcall(dio_driver_init);
139139
140
-EXPORT_SYMBOL(dio_match_device);
141140 EXPORT_SYMBOL(dio_register_driver);
142141 EXPORT_SYMBOL(dio_unregister_driver);
143142 EXPORT_SYMBOL(dio_bus_type);