]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: w35und: make wb35_probe() and wb35_disconnect() funtions static
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 22 Oct 2008 16:05:54 +0000 (19:05 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:39 +0000 (13:51 -0800)
The wb35_probe() and wb35_disconnect() functions are only used in wbusb.c so
make them static and remove them from a header file.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/linux/wbusb.c
drivers/staging/winbond/linux/wbusb_f.h

index 39ca9b9878f8111765b7936e9a045f72c3694720..c1e2562ac65bb1b3ccfa4a49aede03c228104969 100644 (file)
@@ -185,9 +185,7 @@ static const struct ieee80211_ops wbsoft_ops = {
 struct wbsoft_priv {
 };
 
-
-// Usb kernel subsystem will call this function when a new device is plugged into.
-int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id_table)
+static int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id_table)
 {
        PADAPTER        Adapter;
        PWBLINUX        pWbLinux;
@@ -334,30 +332,7 @@ WbUsb_destroy(phw_data_t pHwData)
 {
 }
 
-int wb35_open(struct net_device *netdev)
-{
-       /* netdev_priv() or netdev->ml_priv should reference to the address of
-        * private data(PADAPTER). It depends on whether private data memory is
-        * allocated when alloc_netdev().
-        */
-       PADAPTER Adapter = (PADAPTER)netdev_priv(netdev);
-       phw_data_t pHwData = &Adapter->sHwData;
-
-        netif_start_queue(netdev);
-
-       //TODO : put here temporarily
-       hal_set_accept_broadcast(pHwData, 1); // open accept broadcast
-
-       return 0;
-}
-
-int wb35_close(struct net_device *netdev)
-{
-       netif_stop_queue(netdev);
-       return 0;
-}
-
-void wb35_disconnect(struct usb_interface *intf)
+static void wb35_disconnect(struct usb_interface *intf)
 {
        PWBLINUX pWbLinux;
        PADAPTER Adapter = usb_get_intfdata(intf);
index cae29e107e11dc2bb50b00fb350cdf0392653d4c..9a69008e830cf5c248661b2778d71a0e9cfbfb56 100644 (file)
@@ -18,10 +18,6 @@ void WbUsb_destroy(phw_data_t pHwData);
 unsigned char WbWLanInitialize(PADAPTER Adapter);
 #define        WbUsb_Stop( _A )
 
-int wb35_probe(struct usb_interface *intf,const struct usb_device_id *id_table);
-void wb35_disconnect(struct usb_interface *intf);
-
-
 #define wb_usb_submit_urb(_A) usb_submit_urb(_A, GFP_ATOMIC)
 #define wb_usb_alloc_urb(_A) usb_alloc_urb(_A, GFP_ATOMIC)