Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39043a5b authored by Kumar Gala's avatar Kumar Gala
Browse files

[POWERPC] of_device_register: propagate device_create_file return code



Removed compiler warning about ignoring the return code of device_create_file
in of_device_register.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent c9976797
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev)
	if (rc)
	if (rc)
		return rc;
		return rc;


	device_create_file(&ofdev->dev, &dev_attr_devspec);
	return device_create_file(&ofdev->dev, &dev_attr_devspec);

	return 0;
}
}


void of_device_unregister(struct of_device *ofdev)
void of_device_unregister(struct of_device *ofdev)