extcon: wrap modifies with amlogic marco
authorjianxin.pan <jianxin.pan@amlogic.com>
Tue, 11 Jul 2017 11:14:11 +0000 (19:14 +0800)
committerAo Xu <ao.xu@amlogic.com>
Tue, 11 Jul 2017 11:19:03 +0000 (19:19 +0800)
PD#138714: wrap changs with CONFIG_AMLOGIC_MODIFY

Change-Id: I7ffff7940f13012a1d898635eefe75feb8c17268
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
drivers/extcon/extcon.c

index e99ad94..736c3fa 100644 (file)
@@ -1075,7 +1075,7 @@ int extcon_dev_register(struct extcon_dev *edev)
        edev->dev.class = extcon_class;
        edev->dev.release = extcon_dev_release;
 
-#ifdef AMLOGIC_MODIFY
+#ifdef CONFIG_AMLOGIC_MODIFY
        if (!edev->name) {
                edev->name = dev_name(edev->dev.parent);
                if (IS_ERR_OR_NULL(edev->name)) {