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 12a0fd2 commit 00153c6Copy full SHA for 00153c6
drivers/clk/mmp/clk-pxa1908-apmu.c
@@ -87,8 +87,8 @@ static int pxa1908_apmu_probe(struct platform_device *pdev)
87
struct pxa1908_clk_unit *pxa_unit;
88
89
pxa_unit = devm_kzalloc(&pdev->dev, sizeof(*pxa_unit), GFP_KERNEL);
90
- if (IS_ERR(pxa_unit))
91
- return PTR_ERR(pxa_unit);
+ if (!pxa_unit)
+ return -ENOMEM;
92
93
pxa_unit->base = devm_platform_ioremap_resource(pdev, 0);
94
if (IS_ERR(pxa_unit->base))
0 commit comments