|
@@ -61,10 +61,8 @@ static int xgene_reboot_probe(struct platform_device *pdev)
|
|
struct xgene_reboot_context *ctx;
|
|
struct xgene_reboot_context *ctx;
|
|
|
|
|
|
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
|
|
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
|
|
- if (!ctx) {
|
|
|
|
- dev_err(&pdev->dev, "out of memory for context\n");
|
|
|
|
- return -ENODEV;
|
|
|
|
- }
|
|
|
|
|
|
+ if (!ctx)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
ctx->csr = of_iomap(pdev->dev.of_node, 0);
|
|
ctx->csr = of_iomap(pdev->dev.of_node, 0);
|
|
if (!ctx->csr) {
|
|
if (!ctx->csr) {
|