]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mISDNif.h
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / include / linux / mISDNif.h
index 557477ac3d5b509969060d748173626efddfe873..5da3d95b27f1612b7b008c3495caf419a089be06 100644 (file)
@@ -559,7 +559,10 @@ extern void        mISDN_unregister_clock(struct mISDNclock *);
 
 static inline struct mISDNdevice *dev_to_mISDN(struct device *dev)
 {
-       return dev_get_drvdata(dev);
+       if (dev)
+               return dev_get_drvdata(dev);
+       else
+               return NULL;
 }
 
 extern void    set_channel_address(struct mISDNchannel *, u_int, u_int);