diff options
| author | Amit Jain <ajain@motorola.com> | 2014-02-06 11:11:46 -0600 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:47:18 -0600 |
| commit | 2855fb7b26ef2fb97edd7ca39f2d9fef3173ea3c (patch) | |
| tree | d138de72cd9d23984d88a87be9c6ab7969842874 /drivers/misc/m4sensorhub_download.c | |
| parent | 07a7fd709b227d60cfbc39d554c56f4883bc2c13 (diff) | |
| download | olio-linux-3.10-2855fb7b26ef2fb97edd7ca39f2d9fef3173ea3c.tar.xz olio-linux-3.10-2855fb7b26ef2fb97edd7ca39f2d9fef3173ea3c.zip | |
IKXCLOCK-193:Init mechanism of M4 based drivers
Change-Id: I3c665f1c31d14e73d3776982d570c250e6f8c3b1
Reviewed-on: http://gerrit.pcs.mot.com/608745
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Sajid Dalvi <fsd017@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Diffstat (limited to 'drivers/misc/m4sensorhub_download.c')
| -rw-r--r-- | drivers/misc/m4sensorhub_download.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/m4sensorhub_download.c b/drivers/misc/m4sensorhub_download.c index a671a393f88..85206e228f9 100644 --- a/drivers/misc/m4sensorhub_download.c +++ b/drivers/misc/m4sensorhub_download.c @@ -311,9 +311,10 @@ static struct miscdevice download_client_miscdrv = { .fops = &download_client_fops, }; -static int download_driver_init(struct m4sensorhub_data *m4sensorhub) +static int download_driver_init(struct init_calldata *p_arg) { int ret; + struct m4sensorhub_data *m4sensorhub = p_arg->p_m4sensorhub_data; ret = m4sensorhub_irq_register(m4sensorhub, M4SH_IRQ_DLCMD_RESP_READY, m4_handle_download_irq, misc_download_data); @@ -360,7 +361,8 @@ static int download_client_probe(struct platform_device *pdev) goto free_memory; } misc_download_data = download_client_data; - ret = m4sensorhub_register_initcall(download_driver_init); + ret = m4sensorhub_register_initcall(download_driver_init, + download_client_data); if (ret < 0) { KDEBUG(M4SH_ERROR, "Unable to register init function " "for download client = %d\n", ret); |