mci: remove unused device argument from set_ios
This argmuent is unused in all drivers, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
4f2cf36acb
commit
0b3c58c820
|
@ -351,8 +351,7 @@ static int mci_reset(struct mci_host *mci, struct device_d *mci_dev)
|
|||
}
|
||||
|
||||
/** change host interface settings */
|
||||
static void mci_set_ios(struct mci_host *mci, struct device_d *mci_dev,
|
||||
struct mci_ios *ios)
|
||||
static void mci_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct atmel_mci_host *host = to_mci_host(mci);
|
||||
|
||||
|
|
|
@ -375,8 +375,7 @@ void set_sysctl(struct mci_host *mci, u32 clock)
|
|||
esdhc_setbits32(®s->sysctl, clk);
|
||||
}
|
||||
|
||||
static void esdhc_set_ios(struct mci_host *mci, struct device_d *dev,
|
||||
struct mci_ios *ios)
|
||||
static void esdhc_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct fsl_esdhc_host *host = to_fsl_esdhc(mci);
|
||||
struct fsl_esdhc *regs = host->regs;
|
||||
|
|
|
@ -441,8 +441,7 @@ static void mxcmci_set_clk_rate(struct mxcmci_host *host, unsigned int clk_ios)
|
|||
writew((prescaler << 4) | divider, &host->base->clk_rate);
|
||||
}
|
||||
|
||||
static void mxcmci_set_ios(struct mci_host *mci, struct device_d *dev,
|
||||
struct mci_ios *ios)
|
||||
static void mxcmci_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct mxcmci_host *host = to_mxcmci(mci);
|
||||
|
||||
|
|
|
@ -596,7 +596,7 @@ static void mci_set_ios(struct device_d *mci_dev)
|
|||
ios.bus_width = host->bus_width;
|
||||
ios.clock = host->clock;
|
||||
|
||||
host->set_ios(host, mci_dev, &ios);
|
||||
host->set_ios(host, &ios);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -329,8 +329,7 @@ return 0;
|
|||
|
||||
}
|
||||
|
||||
static void mmc_spi_set_ios(struct mci_host *mci, struct device_d *mci_dev,
|
||||
struct mci_ios *ios)
|
||||
static void mmc_spi_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct mmc_spi_host *host = to_spi_host(mci);
|
||||
|
||||
|
|
|
@ -640,8 +640,7 @@ static int mxs_mci_request(struct mci_host *host, struct mci_cmd *cmd,
|
|||
*
|
||||
* Drivers currently realized values are stored in MCI's platformdata
|
||||
*/
|
||||
static void mxs_mci_set_ios(struct mci_host *host, struct device_d *mci_dev,
|
||||
struct mci_ios *ios)
|
||||
static void mxs_mci_set_ios(struct mci_host *host, struct mci_ios *ios)
|
||||
{
|
||||
struct mxs_mci_host *mxs_mci = to_mxs_mci(host);
|
||||
|
||||
|
|
|
@ -510,8 +510,7 @@ static int mmc_send_cmd(struct mci_host *mci, struct mci_cmd *cmd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void mmc_set_ios(struct mci_host *mci, struct device_d *dev,
|
||||
struct mci_ios *ios)
|
||||
static void mmc_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct omap_hsmmc *hsmmc = to_hsmmc(mci);
|
||||
struct hsmmc *mmc_base = hsmmc->base;
|
||||
|
|
|
@ -273,8 +273,7 @@ static int pxamci_request(struct mci_host *mci, struct mci_cmd *cmd,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void pxamci_set_ios(struct mci_host *mci, struct device_d *dev,
|
||||
struct mci_ios *ios)
|
||||
static void pxamci_set_ios(struct mci_host *mci, struct mci_ios *ios)
|
||||
{
|
||||
struct pxamci_host *host = to_pxamci(mci);
|
||||
unsigned int clk_in = pxa_get_mmcclk();
|
||||
|
|
|
@ -665,12 +665,10 @@ static int mci_request(struct mci_host *host, struct mci_cmd *cmd,
|
|||
/**
|
||||
* Setup the bus width and IO speed
|
||||
* @param host MCI host
|
||||
* @param mci_dev MCI device instance
|
||||
* @param bus_width New bus width value (1, 4 or 8)
|
||||
* @param clock New clock in Hz (can be '0' to disable the clock)
|
||||
*/
|
||||
static void mci_set_ios(struct mci_host *host, struct device_d *mci_dev,
|
||||
struct mci_ios *ios)
|
||||
static void mci_set_ios(struct mci_host *host, struct mci_ios *ios)
|
||||
{
|
||||
struct s3c_mci_host *host_data = to_s3c_host(host);
|
||||
uint32_t reg;
|
||||
|
|
|
@ -260,7 +260,7 @@ struct mci_host {
|
|||
/** init the host interface */
|
||||
int (*init)(struct mci_host*, struct device_d*);
|
||||
/** change host interface settings */
|
||||
void (*set_ios)(struct mci_host*, struct device_d*, struct mci_ios *);
|
||||
void (*set_ios)(struct mci_host*, struct mci_ios *);
|
||||
/** handle a command */
|
||||
int (*send_cmd)(struct mci_host*, struct mci_cmd*, struct mci_data*);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue