X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fdesignware.h;h=ffaf5a14d074131ae7d4c0e8f7ab94b9d43e65d4;hb=HEAD;hp=252cd24f1aafbc46b0d030fc3e6a4a37e9736869;hpb=ba1f966725223c605ed504b09446c52a3f201c2b;p=oweals%2Fu-boot.git diff --git a/drivers/net/designware.h b/drivers/net/designware.h index 252cd24f1a..ffaf5a14d0 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -1,14 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2010 * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _DW_ETH_H #define _DW_ETH_H -#ifdef CONFIG_DM_GPIO +#include +#include + +#if CONFIG_IS_ENABLED(DM_GPIO) #include #endif @@ -236,7 +238,7 @@ struct dw_eth_dev { #ifndef CONFIG_DM_ETH struct eth_device *dev; #endif -#ifdef CONFIG_DM_GPIO +#if CONFIG_IS_ENABLED(DM_GPIO) struct gpio_desc reset_gpio; #endif #ifdef CONFIG_CLK