wifi: rsi: sdio: Migrate to use sdio specific shutdown function
This saves a cast in the driver. The motivation is stop using the callback .shutdown in rsi_driver.drv to make it possible to drop that. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/2909323889b8ad4732ef6a8e05b5c40487a6c4bb.1768232321.git.u.kleine-koenig@baylibre.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
1 parent
c5c57e56de
commit
0f789b37c1
1 file changed
+2
-3
@@ -1443,9 +1443,8 @@ static int rsi_thaw(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rsi_shutdown(struct device *dev)
|
||||
static void rsi_shutdown(struct sdio_func *pfunction)
|
||||
{
|
||||
struct sdio_func *pfunction = dev_to_sdio_func(dev);
|
||||
struct rsi_hw *adapter = sdio_get_drvdata(pfunction);
|
||||
struct rsi_91x_sdiodev *sdev = adapter->rsi_dev;
|
||||
struct ieee80211_hw *hw = adapter->hw;
|
||||
@@ -1513,9 +1512,9 @@ static struct sdio_driver rsi_driver = {
|
||||
.remove = rsi_disconnect,
|
||||
.id_table = rsi_dev_table,
|
||||
#ifdef CONFIG_PM
|
||||
.shutdown = rsi_shutdown,
|
||||
.drv = {
|
||||
.pm = &rsi_pm_ops,
|
||||
.shutdown = rsi_shutdown,
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user