Dynamic allocation of char dev wrapper