From 6fe9bb6705f14bc4e72744c6efe95faf6ce0c778 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Fri, 7 Mar 2014 13:40:56 -0700 Subject: [PATCH] staging: comedi: jr3_pci: use comedi_alloc_spriv() Use the helper function to allocate the subdevice private data. This sets the s->private variable for us and allows the comedi core to automatically kfree() the memory during the (*detach). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed