mmc: core: Remove redundant driver match function
authorlizhe <sensor1010@163.com>
Tue, 7 Dec 2021 09:50:29 +0000 (01:50 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Dec 2021 20:35:27 +0000 (21:35 +0100)
commit79e3b4c7dd1c54be4fdc77de9ba168bfa4e75567
treef59f8046419bf4b10cd2aab8259f4869af01ebda
parent4df297aaeb9c50c6399ee70ba4347f750c87b387
mmc: core: Remove redundant driver match function

If there is no driver match function, the driver core assumes that each
candidate pair (driver, device) matches, see 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.

Signed-off-by: lizhe <sensor1010@163.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211207095029.96387-1-sensor1010@163.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/bus.c