@@ -2199,8 +2199,10 @@ int mmc_card_alternative_gpt_sector(struct mmc_card *card, sector_t *gpt_sector)
2199
2199
}
2200
2200
EXPORT_SYMBOL (mmc_card_alternative_gpt_sector );
2201
2201
2202
- static void __mmc_rescan (struct mmc_host * host )
2202
+ void mmc_rescan (struct work_struct * work )
2203
2203
{
2204
+ struct mmc_host * host =
2205
+ container_of (work , struct mmc_host , detect .work );
2204
2206
int i ;
2205
2207
2206
2208
if (host -> rescan_disable )
@@ -2272,14 +2274,6 @@ static void __mmc_rescan(struct mmc_host *host)
2272
2274
mmc_schedule_delayed_work (& host -> detect , HZ );
2273
2275
}
2274
2276
2275
- void mmc_rescan (struct work_struct * work )
2276
- {
2277
- struct mmc_host * host =
2278
- container_of (work , struct mmc_host , detect .work );
2279
-
2280
- __mmc_rescan (host );
2281
- }
2282
-
2283
2277
void mmc_start_host (struct mmc_host * host )
2284
2278
{
2285
2279
host -> f_init = max (min (freqs [0 ], host -> f_max ), host -> f_min );
@@ -2292,8 +2286,7 @@ void mmc_start_host(struct mmc_host *host)
2292
2286
}
2293
2287
2294
2288
mmc_gpiod_request_cd_irq (host );
2295
- host -> detect_change = 1 ;
2296
- __mmc_rescan (host );
2289
+ _mmc_detect_change (host , 0 , false);
2297
2290
}
2298
2291
2299
2292
void __mmc_stop_host (struct mmc_host * host )
0 commit comments