mci: embed mci_dev into mci_host instead of allocating it seperately
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b7a3e55915
commit
31c88a6929
|
@ -1359,9 +1359,7 @@ device_initcall(mci_init);
|
|||
*/
|
||||
int mci_register(struct mci_host *host)
|
||||
{
|
||||
struct device_d *mci_dev;
|
||||
|
||||
mci_dev = xzalloc(sizeof(struct device_d));
|
||||
struct device_d *mci_dev = &host->dev;
|
||||
|
||||
strcpy(mci_dev->name, mci_driver.name);
|
||||
mci_dev->platform_data = (void*)host;
|
||||
|
|
|
@ -194,6 +194,7 @@ struct mci_data {
|
|||
/** host information */
|
||||
struct mci_host {
|
||||
struct device_d *hw_dev; /**< the host MCI hardware device */
|
||||
struct device_d dev; /**< our device */
|
||||
unsigned voltages;
|
||||
unsigned host_caps; /**< Host's interface capabilities, refer MMC_VDD_* */
|
||||
unsigned f_min; /**< host interface lower limit */
|
||||
|
|
Loading…
Reference in New Issue