lkml.org 
[lkml]   [2021]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2021-12-07 08:24    [W:0.053 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site