Re: [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister()

From: Andrew Donnellan
Date: Mon Mar 12 2018 - 20:26:40 EST


On 12/03/18 22:36, Arvind Yadav wrote:
if device_register() returned an error! Always use put_device()
to give up the reference initialized.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>

This looks right, thanks for picking it up.

Acked-by: Andrew Donnellan <andrew.donnellan@xxxxxxxxxxx>

--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan@xxxxxxxxxxx IBM Australia Limited