X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ffx2lafw%2Fapi.c;h=fcc98fa9a0861753d6159cb052156d06369a665b;hb=700d6b64d578ce10e57f6a2289e37a5564eccf1c;hp=90d28507628dfc1989591a48d64146f69c07b3c2;hpb=1e726f568d6d72a8c6afdcd8fa98b98e910ad523;p=libsigrok.git diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 90d28507..fcc98fa9 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -509,21 +509,6 @@ static int dev_close(struct sr_dev_inst *sdi) return SR_OK; } -static int cleanup(const struct sr_dev_driver *di) -{ - int ret; - struct drv_context *drvc; - - if (!(drvc = di->context)) - return SR_OK; - - ret = std_dev_clear(di, NULL); - - g_free(drvc); - - return ret; -} - static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { @@ -912,7 +897,7 @@ SR_PRIV struct sr_dev_driver fx2lafw_driver_info = { .longname = "fx2lafw (generic driver for FX2 based LAs)", .api_version = 1, .init = init, - .cleanup = cleanup, + .cleanup = std_cleanup, .scan = scan, .dev_list = dev_list, .dev_clear = dev_clear,