diff --git a/mkpatch/mkpatch.pl b/mkpatch/mkpatch.pl index a6118cfe..76570797 100755 --- a/mkpatch/mkpatch.pl +++ b/mkpatch/mkpatch.pl @@ -397,7 +397,7 @@ DRIVERS-$(CONFIG_SENSORS) += drivers/sensors/sensors.a EOF $pr1 = 1; } - if ($type == 2 and m@^DRIVERS \+= \$\(DRIVERS-y\)@) { + if ($type == 2 and m@^DRIVERS .*= \$\(DRIVERS-y\)@) { print OUTPUT <<'EOF'; DRIVERS-$(CONFIG_SENSORS) += drivers/sensors/sensor.o EOF