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 40384c8 commit 7def56fCopy full SHA for 7def56f
drivers/clk/mmp/clk-pxa1908-mpmu.c
@@ -78,8 +78,8 @@ static int pxa1908_mpmu_probe(struct platform_device *pdev)
78
struct pxa1908_clk_unit *pxa_unit;
79
80
pxa_unit = devm_kzalloc(&pdev->dev, sizeof(*pxa_unit), GFP_KERNEL);
81
- if (IS_ERR(pxa_unit))
82
- return PTR_ERR(pxa_unit);
+ if (!pxa_unit)
+ return -ENOMEM;
83
84
pxa_unit->base = devm_platform_ioremap_resource(pdev, 0);
85
if (IS_ERR(pxa_unit->base))
0 commit comments