Re: [PATCH] drivers/mmc/core/bus: Delete redundant match function

From: Uwe Kleine-König
Date: Tue Dec 07 2021 - 02:23:47 EST


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/ |

Attachment: signature.asc
Description: PGP signature