@@ -811,7 +811,7 @@ static int acpi_dev_match_cb(struct device *dev, const void *data)
811811 * Note that if the device is pluggable, it may since have disappeared.
812812 *
813813 * Note that unlike acpi_dev_found() this function checks the status
814- * of the device. So for devices which are present in the dsdt , but
814+ * of the device. So for devices which are present in the DSDT , but
815815 * which are disabled (their _STA callback returns 0) this function
816816 * will return false.
817817 *
@@ -838,15 +838,19 @@ EXPORT_SYMBOL(acpi_dev_present);
838838
839839/**
840840 * acpi_dev_get_next_match_dev - Return the next match of ACPI device
841- * @adev: Pointer to the previous acpi_device matching this @hid, @uid and @hrv
841+ * @adev: Pointer to the previous ACPI device matching this @hid, @uid and @hrv
842842 * @hid: Hardware ID of the device.
843843 * @uid: Unique ID of the device, pass NULL to not check _UID
844844 * @hrv: Hardware Revision of the device, pass -1 to not check _HRV
845845 *
846846 * Return the next match of ACPI device if another matching device was present
847847 * at the moment of invocation, or NULL otherwise.
848848 *
849- * The caller is responsible to call put_device() on the returned device.
849+ * FIXME: The function does not tolerate the sudden disappearance of @adev, e.g.
850+ * in the case of a hotplug event. That said, the caller should ensure that
851+ * this will never happen.
852+ *
853+ * The caller is responsible for invoking acpi_dev_put() on the returned device.
850854 *
851855 * See additional information in acpi_dev_present() as well.
852856 */
@@ -875,7 +879,7 @@ EXPORT_SYMBOL(acpi_dev_get_next_match_dev);
875879 * Return the first match of ACPI device if a matching device was present
876880 * at the moment of invocation, or NULL otherwise.
877881 *
878- * The caller is responsible to call put_device () on the returned device.
882+ * The caller is responsible for invoking acpi_dev_put () on the returned device.
879883 *
880884 * See additional information in acpi_dev_present() as well.
881885 */
@@ -886,6 +890,17 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
886890}
887891EXPORT_SYMBOL (acpi_dev_get_first_match_dev );
888892
893+ /**
894+ * acpi_reduced_hardware - Return if this is an ACPI-reduced-hw machine
895+ *
896+ * Return true when running on an ACPI-reduced-hw machine, false otherwise.
897+ */
898+ bool acpi_reduced_hardware (void )
899+ {
900+ return acpi_gbl_reduced_hardware ;
901+ }
902+ EXPORT_SYMBOL_GPL (acpi_reduced_hardware );
903+
889904/*
890905 * acpi_backlight= handling, this is done here rather then in video_detect.c
891906 * because __setup cannot be used in modules.
0 commit comments