Bluetooth: hci_intel: Add check for platform_driver_register
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 3 Jun 2022 01:24:36 +0000 (09:24 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:05:10 +0000 (17:05 -0700)
commitab2d2a982ff721f4b029282d9a40602ea46a745e
treead99ba1f21126b63539e4d6248a199f015d19598
parent629f66aaca81ad713fb05f1d12acc827510601b3
Bluetooth: hci_intel: Add check for platform_driver_register

As platform_driver_register() could fail, it should be better
to deal with the return value in order to maintain the code
consisitency.

Fixes: 1ab1f239bf17 ("Bluetooth: hci_intel: Add support for platform driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_intel.c