aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2010-12-09 10:37:40 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:40 +0000
commit023d6cc80a7550885e6ee3cd1daec33d4d348fcd (patch)
tree978a64d56690eeb4acddff36975c86ee7e6d0291
parenta1ff67e26f48270f41b478d82257d47d1c3d2eb6 (diff)
downloadmrst-s0i3-test-023d6cc80a7550885e6ee3cd1daec33d4d348fcd.tar.gz
mrst-s0i3-test-023d6cc80a7550885e6ee3cd1daec33d4d348fcd.tar.xz
mrst-s0i3-test-023d6cc80a7550885e6ee3cd1daec33d4d348fcd.zip
ssp: checkpatch clean up
Just whack the style into place Signed-off-by: Alan Cox <alan@linux.intel.com>
-rw-r--r--sound/pci/intel_mid_i2s/intel_mid_i2s.c162
1 files changed, 107 insertions, 55 deletions
diff --git a/sound/pci/intel_mid_i2s/intel_mid_i2s.c b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
index 4de7c966b90..8433429cb8f 100644
--- a/sound/pci/intel_mid_i2s/intel_mid_i2s.c
+++ b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
@@ -79,13 +79,15 @@ static struct pci_driver intel_mid_i2s_driver = {
* Output parameters
* error : 0 means no error
*/
-static int intel_mid_i2s_driver_suspend(struct pci_dev *dev, pm_message_t state)
+static int intel_mid_i2s_driver_suspend(struct pci_dev *dev,
+ pm_message_t state)
{
struct intel_mid_i2s_hdl *drv_data = pci_get_drvdata(dev);
WARN(!drv_data, "Driver data=NULL\n");
if (!drv_data)
return 0;
- dev_dbg(&drv_data->pdev->dev, "SUSPEND SSP ID %d\n", drv_data->pdev->device);
+ dev_dbg(&drv_data->pdev->dev, "SUSPEND SSP ID %d\n",
+ drv_data->pdev->device);
pci_save_state(dev);
pci_disable_device(dev);
pci_set_power_state(dev, PCI_D3hot);
@@ -108,11 +110,13 @@ static int intel_mid_i2s_driver_resume(struct pci_dev *dev)
WARN(!drv_data, "Driver data=NULL\n");
if (!drv_data)
return -EFAULT;
- dev_dbg(&drv_data->pdev->dev, "RESUME SSP ID %d\n", drv_data->pdev->device);
+ dev_dbg(&drv_data->pdev->dev, "RESUME SSP ID %d\n",
+ drv_data->pdev->device);
err = pci_enable_device(dev);
if (err)
- dev_err(&drv_data->pdev->dev, "Unable to re-enable device, trying to continue.\n");
+ dev_err(&drv_data->pdev->dev,
+ "Unable to re-enable device, trying to continue.\n");
dev_dbg(&drv_data->pdev->dev, "resuming\n");
pci_set_power_state(dev, PCI_D0);
pci_restore_state(dev);
@@ -145,12 +149,14 @@ static int intel_mid_i2s_runtime_suspend(struct device *device_ptr)
if (!drv_data)
return -EFAULT;
if (test_bit(I2S_PORT_OPENED, &drv_data->flags)) {
- dev_err(device_ptr, "Trying to suspend a device that is opened\n");
+ dev_err(device_ptr,
+ "Trying to suspend a device that is opened\n");
return -ENODEV;
}
reg = drv_data->ioaddr;
dev_dbg(&drv_data->pdev->dev, "Suspend of SSP requested !!\n");
- return intel_mid_i2s_driver_suspend(to_pci_dev(device_ptr), PMSG_SUSPEND);
+ return intel_mid_i2s_driver_suspend(to_pci_dev(device_ptr),
+ PMSG_SUSPEND);
}
/**
@@ -295,7 +301,8 @@ EXPORT_SYMBOL_GPL(intel_mid_i2s_get_tx_fifo_level);
* Output parameters
* error : 0 means no error
*/
-int intel_mid_i2s_set_rd_cb(struct intel_mid_i2s_hdl *drv_data, int (*read_callback)(void *param))
+int intel_mid_i2s_set_rd_cb(struct intel_mid_i2s_hdl *drv_data,
+ int (*read_callback)(void *param))
{
WARN(!drv_data, "Driver data=NULL\n");
if (!drv_data)
@@ -328,7 +335,8 @@ EXPORT_SYMBOL_GPL(intel_mid_i2s_set_rd_cb);
* Output parameters
* error : 0 means no error
*/
-int intel_mid_i2s_set_wr_cb(struct intel_mid_i2s_hdl *drv_data, int (*write_callback)(void *param))
+int intel_mid_i2s_set_wr_cb(struct intel_mid_i2s_hdl *drv_data,
+ int (*write_callback)(void *param))
{
WARN(!drv_data, "Driver data=NULL\n");
if (!drv_data)
@@ -379,7 +387,8 @@ EXPORT_SYMBOL_GPL(intel_mid_i2s_enable_ssp);
* Output parameters
* error : 0 means no error
*/
-int intel_mid_i2s_rd_req(struct intel_mid_i2s_hdl *drv_data, u32 *destination, size_t len, void *param)
+int intel_mid_i2s_rd_req(struct intel_mid_i2s_hdl *drv_data,
+ u32 *destination, size_t len, void *param)
{
struct dma_async_tx_descriptor *rxdesc = NULL;
struct dma_chan *rxchan = drv_data->rxchan;
@@ -398,10 +407,12 @@ int intel_mid_i2s_rd_req(struct intel_mid_i2s_hdl *drv_data, u32 *destination, s
return -EINVAL;
}
- dev_dbg(&drv_data->pdev->dev, "I2S_READ() dst=%p, len=%d, drv_data=%p", destination, len, drv_data);
+ dev_dbg(&drv_data->pdev->dev, "I2S_READ() dst=%p, len=%d, drv_data=%p",
+ destination, len, drv_data);
dst = dma_map_single(NULL, destination, len, DMA_FROM_DEVICE);
if (!dst) {
- dev_WARN(&drv_data->pdev->dev, "can't map DMA address %p", destination);
+ dev_WARN(&drv_data->pdev->dev, "can't map DMA address %p",
+ destination);
return -ENOMEM;
}
@@ -449,7 +460,8 @@ EXPORT_SYMBOL_GPL(intel_mid_i2s_rd_req);
* Output parameters
* error : 0 means no error
*/
-int intel_mid_i2s_wr_req(struct intel_mid_i2s_hdl *drv_data, u32 *source, size_t len, void *param)
+int intel_mid_i2s_wr_req(struct intel_mid_i2s_hdl *drv_data, u32 *source,
+ size_t len, void *param)
{
dma_addr_t ssdr_addr;
struct dma_async_tx_descriptor *txdesc = NULL;
@@ -468,11 +480,14 @@ int intel_mid_i2s_wr_req(struct intel_mid_i2s_hdl *drv_data, u32 *source, size_t
return -EINVAL;
}
- dev_dbg(&drv_data->pdev->dev, "I2S_WRITE() src=%p, len=%d, drv_data=%p", source, len, drv_data);
+ dev_dbg(&drv_data->pdev->dev,
+ "I2S_WRITE() src=%p, len=%d, drv_data=%p",
+ source, len, drv_data);
src = dma_map_single(NULL, source, len, DMA_TO_DEVICE);
if (!src) {
- dev_WARN(&drv_data->pdev->dev, "can't map DMA address %p", source);
+ dev_WARN(&drv_data->pdev->dev, "can't map DMA address %p",
+ source);
return -EFAULT;
}
drv_data->write_src = src;
@@ -527,10 +542,14 @@ struct intel_mid_i2s_hdl *intel_mid_i2s_open(enum intel_mid_i2s_ssp_usage usage,
struct pci_dev *pdev;
struct intel_mid_i2s_hdl *drv_data = NULL;
struct device *found_device = NULL;
- pr_debug("%s : open called,searching for device with usage=%x !\n", DRIVER_NAME, usage);
- found_device = driver_find_device(&(intel_mid_i2s_driver.driver), NULL, &usage, check_device);
+
+ pr_debug("%s : open called,searching for device with usage=%x !\n",
+ DRIVER_NAME, usage);
+ found_device = driver_find_device(&(intel_mid_i2s_driver.driver),
+ NULL, &usage, check_device);
if (!found_device) {
- pr_debug("%s : open can not found with usage=0x%02X\n", DRIVER_NAME, (int)usage);
+ pr_debug("%s : open can not found with usage=0x%02X\n",
+ DRIVER_NAME, (int)usage);
return NULL;
}
pdev = to_pci_dev(found_device);
@@ -589,7 +608,8 @@ EXPORT_SYMBOL_GPL(intel_mid_i2s_open);
void intel_mid_i2s_close(struct intel_mid_i2s_hdl *drv_data)
{
void __iomem *reg;
- struct intel_mid_i2s_settings *ssp_settings = &(drv_data->current_settings);
+ struct intel_mid_i2s_settings *ssp_settings =
+ &(drv_data->current_settings);
int s;
struct dma_chan *channel;
@@ -614,12 +634,14 @@ void intel_mid_i2s_close(struct intel_mid_i2s_hdl *drv_data)
if (ssp_settings->ssp_active_tx_slots_map) {
channel = drv_data->txchan;
- s = channel->device->device_control(channel, DMA_TERMINATE_ALL, 0);
+ s = channel->device->device_control(channel,
+ DMA_TERMINATE_ALL, 0);
dev_info(&drv_data->pdev->dev, "DMA_TERMINATE tx=%d\n", s);
}
if (ssp_settings->ssp_active_rx_slots_map) {
channel = drv_data->rxchan;
- s = channel->device->device_control(channel, DMA_TERMINATE_ALL, 0);
+ s = channel->device->device_control(channel,
+ DMA_TERMINATE_ALL, 0);
dev_info(&drv_data->pdev->dev, "DMA_TERMINATE rx=%d\n", s);
}
@@ -782,7 +804,8 @@ static bool chan_filter(struct dma_chan *chan, void *param)
out:
return ret;
}
-static int i2s_compute_dma_width(u16 ssp_data_size, enum dma_slave_buswidth *dma_width)
+static int i2s_compute_dma_width(u16 ssp_data_size,
+ enum dma_slave_buswidth *dma_width)
{
if (ssp_data_size <= 8)
*dma_width = DMA_SLAVE_BUSWIDTH_1_BYTE;
@@ -796,7 +819,8 @@ static int i2s_compute_dma_width(u16 ssp_data_size, enum dma_slave_buswidth *dma
return 0;
}
-static int i2s_compute_dma_msize(u8 ssp_threshold, enum intel_mid_dma_msize *dma_msize)
+static int i2s_compute_dma_msize(u8 ssp_threshold,
+ enum intel_mid_dma_msize *dma_msize)
{
switch (ssp_threshold) {
@@ -838,7 +862,8 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
{
struct intel_mid_dma_slave *rxs, *txs;
struct pci_dev *l_pdev;
- struct intel_mid_i2s_settings *ssp_settings = &(drv_data->current_settings);
+ struct intel_mid_i2s_settings *ssp_settings =
+ &(drv_data->current_settings);
dma_cap_mask_t mask;
int retval = 0;
int temp = 0;
@@ -854,7 +879,8 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
rxs->dma_slave.direction = DMA_FROM_DEVICE;
rxs->hs_mode = LNW_DMA_HW_HS;
rxs->cfg_mode = LNW_DMA_PER_TO_MEM;
- temp = i2s_compute_dma_width(ssp_settings->data_size, &rxs->dma_slave.src_addr_width);
+ temp = i2s_compute_dma_width(ssp_settings->data_size,
+ &rxs->dma_slave.src_addr_width);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
@@ -866,7 +892,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
}
rxs->dma_slave.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
- temp = i2s_compute_dma_msize(ssp_settings->ssp_rx_fifo_threshold, &rxs->dma_slave.src_maxburst);
+ temp = i2s_compute_dma_msize(
+ ssp_settings->ssp_rx_fifo_threshold,
+ &rxs->dma_slave.src_maxburst);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
"RX DMA Channel Bad RX FIFO Threshold src= %d\n",
@@ -876,7 +904,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
}
- temp = i2s_compute_dma_msize(ssp_settings->ssp_rx_fifo_threshold, &rxs->dma_slave.dst_maxburst);
+ temp = i2s_compute_dma_msize(
+ ssp_settings->ssp_rx_fifo_threshold,
+ &rxs->dma_slave.dst_maxburst);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
"RX DMA Channel Bad RX FIFO Threshold dst= %d\n",
@@ -890,7 +920,8 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
dma_cap_zero(mask);
dma_cap_set(DMA_MEMCPY, mask);
dma_cap_set(DMA_SLAVE, mask);
- drv_data->rxchan = dma_request_channel(mask, chan_filter, drv_data);
+ drv_data->rxchan = dma_request_channel(mask,
+ chan_filter, drv_data);
if (!drv_data->rxchan) {
dev_err(&(drv_data->pdev->dev),
"Could not get Rx channel\n");
@@ -898,7 +929,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
goto err_exit;
}
- temp = drv_data->rxchan->device->device_control(drv_data->rxchan, DMA_SLAVE_CONFIG, (unsigned long) &rxs->dma_slave);
+ temp = drv_data->rxchan->device->device_control(
+ drv_data->rxchan, DMA_SLAVE_CONFIG,
+ (unsigned long) &rxs->dma_slave);
if (temp) {
dev_err(&(drv_data->pdev->dev),
"Rx slave control failed\n");
@@ -917,7 +950,8 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
txs->dma_slave.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
- temp = i2s_compute_dma_width(ssp_settings->data_size, &txs->dma_slave.dst_addr_width);
+ temp = i2s_compute_dma_width(ssp_settings->data_size,
+ &txs->dma_slave.dst_addr_width);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
"TX DMA Channel Bad data_size = %d\n",
@@ -927,7 +961,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
}
- temp = i2s_compute_dma_msize(ssp_settings->ssp_tx_fifo_threshold+1, &txs->dma_slave.src_maxburst);
+ temp = i2s_compute_dma_msize(
+ ssp_settings->ssp_tx_fifo_threshold + 1,
+ &txs->dma_slave.src_maxburst);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
"TX DMA Channel Bad TX FIFO Threshold src= %d\n",
@@ -937,7 +973,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
}
- temp = i2s_compute_dma_msize(ssp_settings->ssp_tx_fifo_threshold+1, &txs->dma_slave.dst_maxburst);
+ temp = i2s_compute_dma_msize(
+ ssp_settings->ssp_tx_fifo_threshold + 1,
+ &txs->dma_slave.dst_maxburst);
if (temp != 0) {
dev_err(&(drv_data->pdev->dev),
"TX DMA Channel Bad TX FIFO Threshold dst= %d\n",
@@ -950,7 +988,8 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
txs->device_instance = drv_data->device_instance;
dma_cap_set(DMA_SLAVE, mask);
dma_cap_set(DMA_MEMCPY, mask);
- drv_data->txchan = dma_request_channel(mask, chan_filter, drv_data);
+ drv_data->txchan = dma_request_channel(mask,
+ chan_filter, drv_data);
if (!drv_data->txchan) {
dev_err(&(drv_data->pdev->dev),
@@ -959,7 +998,9 @@ static int i2s_dma_start(struct intel_mid_i2s_hdl *drv_data)
goto err_exit;
}
- temp = drv_data->txchan->device->device_control(drv_data->txchan, DMA_SLAVE_CONFIG, (unsigned long) &txs->dma_slave);
+ temp = drv_data->txchan->device->device_control(
+ drv_data->txchan, DMA_SLAVE_CONFIG,
+ (unsigned long) &txs->dma_slave);
if (temp) {
dev_err(&(drv_data->pdev->dev),
"Tx slave control failed\n");
@@ -991,7 +1032,8 @@ err_exit:
*/
static void i2s_dma_stop(struct intel_mid_i2s_hdl *drv_data)
{
- struct intel_mid_i2s_settings *ssp_settings = &(drv_data->current_settings);
+ struct intel_mid_i2s_settings *ssp_settings =
+ &(drv_data->current_settings);
dev_dbg(&drv_data->pdev->dev, "DMAC1 stop\n");
if (ssp_settings->ssp_active_rx_slots_map)
@@ -1059,10 +1101,10 @@ static irqreturn_t i2s_int(int irq, void *dev_id)
irq_status = read_SSSR(reg);
- if (ddbg->power.status!=DPM_ON)
+ if (ddbg->power.status != DPM_ON)
return IRQ_NONE;
#ifdef CONFIG_PM_RUNTIME
- if (ddbg->power.runtime_status!=RPM_ACTIVE)
+ if (ddbg->power.runtime_status != RPM_ACTIVE)
return IRQ_NONE;
#endif
@@ -1178,17 +1220,20 @@ sscr0 = SSCR0_reg(DSS, (l_ssp_data_size - 1) & 0x0F)
u32 calculate_sscr1_psp(const struct intel_mid_i2s_settings *ps_settings)
{
u32 sscr1;
- sscr1 = SSCR1_reg(SFRMDIR, ps_settings->sspsfrm_direction)
- |SSCR1_reg(SCLKDIR, ps_settings->sspslclk_direction)
- |SSCR1_reg(TTELP, ps_settings->tx_tristate_phase)
+ sscr1 = SSCR1_reg(SFRMDIR, ps_settings->sspsfrm_direction)
+ |SSCR1_reg(SCLKDIR, ps_settings->sspslclk_direction)
+ |SSCR1_reg(TTELP, ps_settings->tx_tristate_phase)
|SSCR1_reg(TTE, ps_settings->tx_tristate_enable)
- |SSCR1_reg(TRAIL, ps_settings->ssp_trailing_byte_mode)
- |SSCR1_reg(TINTE, ps_settings->ssp_rx_timeout_interrupt_status)
- |SSCR1_reg(PINTE, ps_settings->ssp_trailing_byte_interrupt_status)
+ |SSCR1_reg(TRAIL, ps_settings->ssp_trailing_byte_mode)
+ |SSCR1_reg(TINTE, ps_settings->ssp_rx_timeout_interrupt_status)
+ |SSCR1_reg(PINTE,
+ ps_settings->ssp_trailing_byte_interrupt_status)
|SSCR1_reg(LBM, ps_settings->ssp_loopback_mode_status)
- |SSCR1_reg(RWOT, ps_settings->ssp_duplex_mode)
- |SSCR1_reg(RFT, SSCR1_RxTresh(ps_settings->ssp_rx_fifo_threshold))
- |SSCR1_reg(TFT, SSCR1_TxTresh(ps_settings->ssp_tx_fifo_threshold));
+ |SSCR1_reg(RWOT, ps_settings->ssp_duplex_mode)
+ |SSCR1_reg(RFT,
+ SSCR1_RxTresh(ps_settings->ssp_rx_fifo_threshold))
+ |SSCR1_reg(TFT,
+ SSCR1_TxTresh(ps_settings->ssp_tx_fifo_threshold));
return sscr1;
}
@@ -1232,7 +1277,8 @@ static void set_ssp_i2s_hw(struct intel_mid_i2s_hdl *drv_data,
dev_dbg(ddbg, "SSPSCLK_DIRECTION:%d:\n",
ps_settings->sspslclk_direction);
if (ps_settings->frame_format != PSP_FORMAT) {
- dev_err(ddbg, "UNSUPPORTED FRAME FORMAT:%d:\n", ps_settings->frame_format);
+ dev_err(ddbg, "UNSUPPORTED FRAME FORMAT:%d:\n",
+ ps_settings->frame_format);
goto leave;
}
if ((ps_settings->ssp_tx_dma != SSP_TX_DMA_ENABLE)
@@ -1248,7 +1294,9 @@ static void set_ssp_i2s_hw(struct intel_mid_i2s_hdl *drv_data,
dev_dbg(ddbg, " sscr1 :0x%08X\n", sscr1);
if (ps_settings->mode == SSP_IN_NETWORK_MODE) {
dev_dbg(ddbg, "MODE :%d:\n", ps_settings->mode);
- sscr0 |= SSCR0_reg(FRDC, SSCR0_SlotsPerFrm(ps_settings->frame_rate_divider_control));
+ sscr0 |= SSCR0_reg(FRDC,
+ SSCR0_SlotsPerFrm(ps_settings->
+ frame_rate_divider_control));
dev_dbg(ddbg, "sscr0 :0x%08X\n", sscr0);
sspsp = calculate_sspsp_psp(ps_settings);
dev_dbg(ddbg, "sspsp :0x%08X\n", sspsp);
@@ -1276,7 +1324,8 @@ static void set_ssp_i2s_hw(struct intel_mid_i2s_hdl *drv_data,
sspsp |= SSPSP_reg(STRTDLY, ps_settings->ssp_psp_T1)
|SSPSP_reg(DMYSTRT, ps_settings->ssp_psp_T2);
} else { /* Set the Slave Clock Free Running Status */
- sscr1 |= SSCR1_reg(SCFR, ps_settings->slave_clk_free_running_status);
+ sscr1 |= SSCR1_reg(SCFR,
+ ps_settings->slave_clk_free_running_status);
}
} else { /* SSP_IN_NORMAL_MODE */
dev_err(ddbg, "UNSUPPORTED MODE");
@@ -1399,13 +1448,15 @@ static int intel_mid_i2s_probe(struct pci_dev *pdev,
enum intel_mid_i2s_ssp_usage usage;
drv_data = kzalloc(sizeof(struct intel_mid_i2s_hdl), GFP_KERNEL);
- dev_dbg(&(pdev->dev), "%s Probe, drv_data =%p\n", DRIVER_NAME, drv_data);
+ dev_dbg(&(pdev->dev), "%s Probe, drv_data =%p\n",
+ DRIVER_NAME, drv_data);
if (!drv_data) {
dev_err((&pdev->dev), "Can't alloc driver data in probe\n");
status = -ENOMEM;
goto leave;
}
- dev_info((&pdev->dev), "Detected PCI SSP (ID: %04x:%04x)\n", pdev->vendor, pdev->device);
+ dev_info((&pdev->dev), "Detected PCI SSP (ID: %04x:%04x)\n",
+ pdev->vendor, pdev->device);
status = intel_mid_i2s_find_usage(pdev, drv_data, &usage);
if (status)
goto err_i2s_probe0;
@@ -1419,7 +1470,8 @@ static int intel_mid_i2s_probe(struct pci_dev *pdev,
(pdev->device == MFLD_SSP0_DEVICE_ID)) {
drv_data->paddr = pci_resource_start(pdev, MRST_SSP_BAR);
drv_data->iolen = pci_resource_len(pdev, MRST_SSP_BAR);
- status = pci_request_region(pdev, MRST_SSP_BAR, dev_name(&pdev->dev));
+ status = pci_request_region(pdev, MRST_SSP_BAR,
+ dev_name(&pdev->dev));
/* map bus memory into CPU space */
drv_data->ioaddr = pci_ioremap_bar(pdev, MRST_SSP_BAR);
} else {
@@ -1475,11 +1527,14 @@ static int intel_mid_i2s_probe(struct pci_dev *pdev,
/* Attach to IRQ */
drv_data->irq = pdev->irq;
dev_dbg(&(pdev->dev), "attaching to IRQ: %04x\n", pdev->irq);
- status = request_irq(drv_data->irq, i2s_int, IRQF_SHARED, "i2s ssp", drv_data);
+
+ status = request_irq(drv_data->irq, i2s_int, IRQF_SHARED,
+ "i2s ssp", drv_data);
if (status < 0) {
dev_err(&pdev->dev, "can not get IRQ. status err=%d\n", status);
goto err_i2s_probe3;
}
+
pm_runtime_enable(&(drv_data->pdev->dev));
pm_runtime_allow(&(drv_data->pdev->dev));
pm_runtime_set_active(&(drv_data->pdev->dev));
@@ -1543,6 +1598,3 @@ static void __exit intel_mid_i2s_exit(void)
module_init(intel_mid_i2s_init);
module_exit(intel_mid_i2s_exit);
-
-
-