/* The one and only one */
-static struct storvsc_driver g_blkvsc_drv;
+static struct storvsc_driver blkvsc_drv;
static const struct block_device_operations block_ops = {
.owner = THIS_MODULE,
*/
static int blkvsc_drv_init(void)
{
- struct storvsc_driver *storvsc_drv_obj = &g_blkvsc_drv;
- struct hv_driver *drv = &g_blkvsc_drv.base;
+ struct storvsc_driver *storvsc_drv_obj = &blkvsc_drv;
+ struct hv_driver *drv = &blkvsc_drv.base;
int ret;
storvsc_drv_obj->ring_buffer_size = blkvsc_ringbuffer_size;
static void blkvsc_drv_exit(void)
{
- struct storvsc_driver *storvsc_drv_obj = &g_blkvsc_drv;
- struct hv_driver *drv = &g_blkvsc_drv.base;
+ struct storvsc_driver *storvsc_drv_obj = &blkvsc_drv;
+ struct hv_driver *drv = &blkvsc_drv.base;
struct device *current_dev;
int ret;