mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 07:59:19 +00:00
elantp: Fix a crash when starting the daemon
FuElantpHidDevice derives from FuUdevDevice, not FuUsbDevice -- and the former does not define a class->setup vfunc. Fixes https://github.com/fwupd/fwupd/issues/3548
This commit is contained in:
parent
51efc1c772
commit
2815a30274
@ -161,10 +161,6 @@ fu_elantp_hid_device_setup (FuDevice *device, GError **error)
|
|||||||
g_autofree gchar *version_bl = NULL;
|
g_autofree gchar *version_bl = NULL;
|
||||||
g_autofree gchar *version = NULL;
|
g_autofree gchar *version = NULL;
|
||||||
|
|
||||||
/* FuUsbDevice->setup */
|
|
||||||
if (!FU_DEVICE_CLASS (fu_elantp_hid_device_parent_class)->setup (device, error))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* get pattern */
|
/* get pattern */
|
||||||
if (!fu_elantp_hid_device_read_cmd (self,
|
if (!fu_elantp_hid_device_read_cmd (self,
|
||||||
ETP_CMD_I2C_GET_HID_ID,
|
ETP_CMD_I2C_GET_HID_ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user