projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8d9f87
)
dmaengine/dw_dmac: Use dev_get_platdata() instead of accessing dev directly
author
Viresh Kumar
<viresh.kumar@st.com>
Wed, 1 Feb 2012 10:42:22 +0000
(16:12 +0530)
committer
Vinod Koul
<vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:38 +0000
(18:15 +0530)
Use already defined function dev_get_platdata() instead of accessing
pdev->dev.data.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/dw_dmac.c
b/drivers/dma/dw_dmac.c
index 1577394237346ac763da5e6281a1465af6dda2ae..f3aecb3c0343004ec56e9072d74f5e63717cdff3 100644
(file)
--- a/
drivers/dma/dw_dmac.c
+++ b/
drivers/dma/dw_dmac.c
@@
-1369,7
+1369,7
@@
static int __init dw_probe(struct platform_device *pdev)
int err;
int i;
- pdata =
pdev->dev.platform_data
;
+ pdata =
dev_get_platdata(&pdev->dev)
;
if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS)
return -EINVAL;