Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 222375 | Differences between
and this patch

Collapse All | Expand All

(-)2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c (-3 / +11 lines)
Lines 340-350 Link Here
340
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)            
340
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)            
341
//--> Benson add 20080505, for Linux_kernel > 2,6,24
341
//--> Benson add 20080505, for Linux_kernel > 2,6,24
342
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
342
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
343
        	struct net *net;
343
        		struct net *net;
344
//			BUG_ON(!net_dev->nd_net);
345
//			net = net_dev->nd_net;
346
347
//			device = dev_get_by_name(net, slot_name);
348
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
349
			device = dev_get_by_name(dev_net(net), slot_name);
350
#else
344
			BUG_ON(!net_dev->nd_net);
351
			BUG_ON(!net_dev->nd_net);
345
			net = net_dev->nd_net;
352
                        net = net_dev->nd_net;
353
			device = dev_get_by_name(net, slot_name); 
354
#endif 
346
355
347
			device = dev_get_by_name(net, slot_name);
348
#else
356
#else
349
            device = dev_get_by_name(slot_name);
357
            device = dev_get_by_name(slot_name);
350
#endif
358
#endif

Return to bug 222375