bus: hisi_lpc: Use platform_device_register_full()
authorJohn Garry <john.garry@huawei.com>
Mon, 5 Sep 2022 08:23:06 +0000 (16:23 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 8 Sep 2022 02:27:29 +0000 (02:27 +0000)
commit4678a2d352e055a186dd02613d54e30785810fb0
tree9d2f6568ed5a32a3c5c5e36ae1da21d2481b0a0b
parente8cd65061fac64d6d0b5c3f5c3059c326b1492f0
bus: hisi_lpc: Use platform_device_register_full()

The code to create the child platform device is essentially the same as
what platform_device_register_full() does, so change over to use
that same function to reduce duplication.

Signed-off-by: John Garry <john.garry@huawei.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/bus/hisi_lpc.c