aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/isa.c')
-rw-r--r--drivers/base/isa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/isa.c b/drivers/base/isa.c
index cd6ccdcf9df0..372d10af2600 100644
--- a/drivers/base/isa.c
+++ b/drivers/base/isa.c
@@ -39,7 +39,7 @@ static int isa_bus_probe(struct device *dev)
39{ 39{
40 struct isa_driver *isa_driver = dev->platform_data; 40 struct isa_driver *isa_driver = dev->platform_data;
41 41
42 if (isa_driver->probe) 42 if (isa_driver && isa_driver->probe)
43 return isa_driver->probe(dev, to_isa_dev(dev)->id); 43 return isa_driver->probe(dev, to_isa_dev(dev)->id);
44 44
45 return 0; 45 return 0;
@@ -49,7 +49,7 @@ static int isa_bus_remove(struct device *dev)
49{ 49{
50 struct isa_driver *isa_driver = dev->platform_data; 50 struct isa_driver *isa_driver = dev->platform_data;
51 51
52 if (isa_driver->remove) 52 if (isa_driver && isa_driver->remove)
53 return isa_driver->remove(dev, to_isa_dev(dev)->id); 53 return isa_driver->remove(dev, to_isa_dev(dev)->id);
54 54
55 return 0; 55 return 0;
@@ -59,7 +59,7 @@ static void isa_bus_shutdown(struct device *dev)
59{ 59{
60 struct isa_driver *isa_driver = dev->platform_data; 60 struct isa_driver *isa_driver = dev->platform_data;
61 61
62 if (isa_driver->shutdown) 62 if (isa_driver && isa_driver->shutdown)
63 isa_driver->shutdown(dev, to_isa_dev(dev)->id); 63 isa_driver->shutdown(dev, to_isa_dev(dev)->id);
64} 64}
65 65
@@ -67,7 +67,7 @@ static int isa_bus_suspend(struct device *dev, pm_message_t state)
67{ 67{
68 struct isa_driver *isa_driver = dev->platform_data; 68 struct isa_driver *isa_driver = dev->platform_data;
69 69
70 if (isa_driver->suspend) 70 if (isa_driver && isa_driver->suspend)
71 return isa_driver->suspend(dev, to_isa_dev(dev)->id, state); 71 return isa_driver->suspend(dev, to_isa_dev(dev)->id, state);
72 72
73 return 0; 73 return 0;
@@ -77,7 +77,7 @@ static int isa_bus_resume(struct device *dev)
77{ 77{
78 struct isa_driver *isa_driver = dev->platform_data; 78 struct isa_driver *isa_driver = dev->platform_data;
79 79
80 if (isa_driver->resume) 80 if (isa_driver && isa_driver->resume)
81 return isa_driver->resume(dev, to_isa_dev(dev)->id); 81 return isa_driver->resume(dev, to_isa_dev(dev)->id);
82 82
83 return 0; 83 return 0;