summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/pxp/mei_pxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mei/pxp/mei_pxp.c')
-rw-r--r--drivers/misc/mei/pxp/mei_pxp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/pxp/mei_pxp.c b/drivers/misc/mei/pxp/mei_pxp.c
index f7380d387bab..5c39457e3f53 100644
--- a/drivers/misc/mei/pxp/mei_pxp.c
+++ b/drivers/misc/mei/pxp/mei_pxp.c
@@ -131,7 +131,7 @@ static int mei_pxp_component_match(struct device *dev, int subcomponent,
{
struct device *base = data;
- if (strcmp(dev->driver->name, "i915") ||
+ if (!dev->driver || strcmp(dev->driver->name, "i915") ||
subcomponent != I915_COMPONENT_PXP)
return 0;