@@ -806,7 +806,6 @@ static void sd_request(struct work_struc
struct mmc_request *mrq = host->mrq;
struct mmc_command *cmd = mrq->cmd;
struct mmc_data *data = mrq->data;
- struct device *dev = &host->pdev->dev;
unsigned int data_size = 0;
int err;
@@ -1081,7 +1080,6 @@ static void sdmmc_set_ios(struct mmc_hos
{
struct realtek_pci_sdmmc *host = mmc_priv(mmc);
struct rtsx_pcr *pcr = host->pcr;
- struct device *dev = &host->pdev->dev;
if (host->eject)
return;
@@ -1130,7 +1128,6 @@ static int sdmmc_get_ro(struct mmc_host
{
struct realtek_pci_sdmmc *host = mmc_priv(mmc);
struct rtsx_pcr *pcr = host->pcr;
- struct device *dev = &host->pdev->dev;
int ro = 0;
u32 val;
@@ -1156,7 +1153,6 @@ static int sdmmc_get_cd(struct mmc_host
{
struct realtek_pci_sdmmc *host = mmc_priv(mmc);
struct rtsx_pcr *pcr = host->pcr;
- struct device *dev = &host->pdev->dev;
int cd = 0;
u32 val;
@@ -1255,7 +1251,6 @@ static int sdmmc_switch_voltage(struct m
{
struct realtek_pci_sdmmc *host = mmc_priv(mmc);
struct rtsx_pcr *pcr = host->pcr;
- struct device *dev = &host->pdev->dev;
int err = 0;
u8 voltage;
@@ -1308,7 +1303,6 @@ static int sdmmc_execute_tuning(struct m
{
struct realtek_pci_sdmmc *host = mmc_priv(mmc);
struct rtsx_pcr *pcr = host->pcr;
- struct device *dev = &host->pdev->dev;
int err = 0;
if (host->eject)