dma: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Vinod Koul

vecāks
696b4ff8b2
revīzija
d4adcc0160
@@ -42,7 +42,7 @@ static struct dma_chan *shdma_of_xlate(struct of_phandle_args *dma_spec,
|
||||
|
||||
static int shdma_of_probe(struct platform_device *pdev)
|
||||
{
|
||||
const struct of_dev_auxdata *lookup = pdev->dev.platform_data;
|
||||
const struct of_dev_auxdata *lookup = dev_get_platdata(&pdev->dev);
|
||||
int ret;
|
||||
|
||||
if (!lookup)
|
||||
|
@@ -660,7 +660,7 @@ static const struct shdma_ops sh_dmae_shdma_ops = {
|
||||
|
||||
static int sh_dmae_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct sh_dmae_pdata *pdata = pdev->dev.platform_data;
|
||||
struct sh_dmae_pdata *pdata = dev_get_platdata(&pdev->dev);
|
||||
unsigned long irqflags = IRQF_DISABLED,
|
||||
chan_flag[SH_DMAE_MAX_CHANNELS] = {};
|
||||
int errirq, chan_irq[SH_DMAE_MAX_CHANNELS];
|
||||
|
@@ -335,7 +335,7 @@ static const struct shdma_ops sudmac_shdma_ops = {
|
||||
|
||||
static int sudmac_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct sudmac_pdata *pdata = pdev->dev.platform_data;
|
||||
struct sudmac_pdata *pdata = dev_get_platdata(&pdev->dev);
|
||||
int err, i;
|
||||
struct sudmac_device *su_dev;
|
||||
struct dma_device *dma_dev;
|
||||
@@ -373,7 +373,7 @@ static int sudmac_probe(struct platform_device *pdev)
|
||||
return err;
|
||||
|
||||
/* platform data */
|
||||
su_dev->pdata = pdev->dev.platform_data;
|
||||
su_dev->pdata = dev_get_platdata(&pdev->dev);
|
||||
|
||||
platform_set_drvdata(pdev, su_dev);
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user