Messages in this thread | | | Date | Tue, 7 Dec 2021 08:23:22 +0100 | From | Uwe Kleine-König <> | Subject | Re: [PATCH] drivers/mmc/core/bus: Delete redundant match function |
| |
Hello,
On Mon, Dec 06, 2021 at 08:50:38AM -0800, lizhe wrote: > When the device and device driver are matching, > if the device or the bus to which the device driver belongs > does not provide a match function, > then the device and device driver arae matched by default.
s/arae/are/, but maybe the overall wording could be improved. Something like:
drivers/mmc/core/bus: Remove redundant driver match function
If there is no driver match function, the driver core assumes that each candidate pair (driver, device) matches. See function driver_match_device().
Drop the mmc bus's match function that always returned 1 and so implements the same behaviour as when there is no match function.
Best regards Uwe
-- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [unhandled content-type:application/pgp-signature] | |