We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7def56f commit 3acea81Copy full SHA for 3acea81
drivers/clk/mmp/clk-pxa1908-apbcp.c
@@ -48,8 +48,8 @@ static int pxa1908_apbcp_probe(struct platform_device *pdev)
48
struct pxa1908_clk_unit *pxa_unit;
49
50
pxa_unit = devm_kzalloc(&pdev->dev, sizeof(*pxa_unit), GFP_KERNEL);
51
- if (IS_ERR(pxa_unit))
52
- return PTR_ERR(pxa_unit);
+ if (!pxa_unit)
+ return -ENOMEM;
53
54
pxa_unit->base = devm_platform_ioremap_resource(pdev, 0);
55
if (IS_ERR(pxa_unit->base))
0 commit comments