freebsd-dev/sys/dev/cardbus
Mitchell Horne 36a8572ee8 bus_if: provide a default null rescan method
There is an existing helper method in subr_bus.c, but almost no drivers
know to use it. It also returns the same error as an empty method,
making it not very useful. Move this to bus_if.m and return a more
sensible error code.

This gives a slightly more meaningful error message when attempting
'devctl rescan' on buses and devices alike:
  "Device not configured" --> "Operation not supported by device"

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35501
2022-06-23 15:15:10 -03:00
..
card_if.m cardbus: move card_if.m to sys/dev/cardbus 2021-07-13 20:39:30 -06:00
cardbus_cis.c cardbus: clean up empty lines in .c and .h files 2020-09-01 22:09:41 +00:00
cardbus_cis.h
cardbus_device.c
cardbus.c bus_if: provide a default null rescan method 2022-06-23 15:15:10 -03:00
cardbusreg.h
cardbusvar.h
power_if.m pccard: Move power_if.m from pccard to cardbus 2021-01-07 17:05:29 -07:00