brymen-dmm: Use std_hw_init().

This commit is contained in:
Uwe Hermann 2013-02-02 11:19:03 +01:00
parent 601fb67cc4
commit 943e94f567
1 changed files with 1 additions and 11 deletions

View File

@ -44,17 +44,7 @@ static struct sr_dev_driver *di = &brymen_dmm_driver_info;
static int hw_init(struct sr_context *sr_ctx)
{
struct drv_context *drvc;
if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
sr_err("Driver context malloc failed.");
return SR_ERR_MALLOC;
}
drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
return std_hw_init(sr_ctx, di, DRIVER_LOG_DOMAIN);
}
static void free_instance(void *inst)