[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211207072322.37dljknm24nk5vk4@pengutronix.de>
Date: Tue, 7 Dec 2021 08:23:22 +0100
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
To: lizhe <sensor1010@....com>
Cc: ulf.hansson@...aro.org, srinivas.pandruvada@...ux.intel.com,
pali@...nel.org, TheSven73@...il.com, lznuaa@...il.com,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...gutronix.de
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/ |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists