This shows you the differences between two versions of the page.
so2:laboratoare:lab12 [2018/05/16 12:29] silvia.pripoae [Operații PNP] |
so2:laboratoare:lab12 [2018/05/17 09:18] (current) elena.sandulescu [Structuri de bază în dispozitivele Linux] |
||
---|---|---|---|
Line 209: | Line 209: | ||
static int my_match (struct device *dev, struct device_driver *driver) | static int my_match (struct device *dev, struct device_driver *driver) | ||
{ | { | ||
- | return !strncmp (dev_name(dev), driver->name, strlen (driver->name)); | + | return strncmp (dev_name(dev), driver->name, strlen (driver->name)); |
} | } | ||