The file st5481_init.c locally defines and initializes the adapter_list
variable, but does not use it for anything.  Removing the list makes it
possible to remove the list field from the st5481_adapter data structure.
In the function probe_st5481, it also makes it possible to free the locally
allocated adapter value on an error exit.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
 };
 
 struct st5481_adapter {
-       struct list_head list;
        int number_of_leds;
        struct usb_device *usb_dev;
        struct hisax_d_if hisax_d_if;
 
 #endif
 int st5481_debug;
 
-static LIST_HEAD(adapter_list);
-
 /* ======================================================================
  * registration/deregistration with the USB layer
  */
                adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i];
                adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1;
        }
-       list_add(&adapter->list, &adapter_list);
 
        retval = st5481_setup_usb(adapter);
        if (retval < 0)
  err_usb:
        st5481_release_usb(adapter);
  err:
+       kfree(adapter);
        return -EIO;
 }
 
        if (!adapter)
                return;
        
-       list_del(&adapter->list);
-
        st5481_stop(adapter);
        st5481_release_b(&adapter->bcs[1]);
        st5481_release_b(&adapter->bcs[0]);