ep93xx-i2s.c (734d1ece37fbf3d2ddfc71bc6c69e0fe35f02542) | ep93xx-i2s.c (b25b5aa06667b01fee8fe2648d4ea9db32c87d1a) |
---|---|
1/* 2 * linux/sound/soc/ep93xx-i2s.c 3 * EP93xx I2S driver 4 * 5 * Copyright (C) 2010 Ryan Mallon 6 * 7 * Based on the original driver by: 8 * Copyright (C) 2007 Chase Douglas <chasedouglas@gmail> --- 366 unchanged lines hidden (view full) --- 375 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); 376 if (!info) 377 return -ENOMEM; 378 379 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 380 if (!res) 381 return -ENODEV; 382 | 1/* 2 * linux/sound/soc/ep93xx-i2s.c 3 * EP93xx I2S driver 4 * 5 * Copyright (C) 2010 Ryan Mallon 6 * 7 * Based on the original driver by: 8 * Copyright (C) 2007 Chase Douglas <chasedouglas@gmail> --- 366 unchanged lines hidden (view full) --- 375 info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); 376 if (!info) 377 return -ENOMEM; 378 379 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 380 if (!res) 381 return -ENODEV; 382 |
383 info->regs = devm_request_and_ioremap(&pdev->dev, res); 384 if (!info->regs) 385 return -ENXIO; | 383 info->regs = devm_ioremap_resource(&pdev->dev, res); 384 if (IS_ERR(info->regs)) 385 return PTR_ERR(info->regs); |
386 387 info->mclk = clk_get(&pdev->dev, "mclk"); 388 if (IS_ERR(info->mclk)) { 389 err = PTR_ERR(info->mclk); 390 goto fail; 391 } 392 393 info->sclk = clk_get(&pdev->dev, "sclk"); --- 58 unchanged lines hidden --- | 386 387 info->mclk = clk_get(&pdev->dev, "mclk"); 388 if (IS_ERR(info->mclk)) { 389 err = PTR_ERR(info->mclk); 390 goto fail; 391 } 392 393 info->sclk = clk_get(&pdev->dev, "sclk"); --- 58 unchanged lines hidden --- |