|
@@ -458,10 +458,8 @@ static int vt8500_pinctrl_probe(struct platform_device *pdev)
|
|
|
struct wmt_pinctrl_data *data;
|
|
|
|
|
|
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
|
|
|
- if (!data) {
|
|
|
- dev_err(&pdev->dev, "failed to allocate data\n");
|
|
|
+ if (!data)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
data->banks = vt8500_banks;
|
|
|
data->nbanks = ARRAY_SIZE(vt8500_banks);
|