[PATCH] ppc32: add missing 4xx EMAC sysfs nodes

Add missing 4xx EMAC data sysfs nodes.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Eugene Surovegin and committed by Linus Torvalds 4374ae10 61d44c77

+11 -1
+11 -1
include/asm-ppc/ibm_ocp.h
··· 71 71 72 72 /* Sysfs support */ 73 73 #define OCP_SYSFS_EMAC_DATA() \ 74 + OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, rgmii_idx) \ 75 + OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, rgmii_mux) \ 74 76 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_idx) \ 75 77 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_mux) \ 76 78 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_idx) \ ··· 80 78 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_tx_chan) \ 81 79 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, wol_irq) \ 82 80 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mdio_idx) \ 81 + OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, tah_idx) \ 82 + OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, phy_mode) \ 83 + OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "0x%08x\n", emac, phy_map) \ 83 84 \ 84 85 void ocp_show_emac_data(struct device *dev) \ 85 86 { \ 87 + device_create_file(dev, &dev_attr_emac_rgmii_idx); \ 88 + device_create_file(dev, &dev_attr_emac_rgmii_mux); \ 86 89 device_create_file(dev, &dev_attr_emac_zmii_idx); \ 87 90 device_create_file(dev, &dev_attr_emac_zmii_mux); \ 88 91 device_create_file(dev, &dev_attr_emac_mal_idx); \ ··· 95 88 device_create_file(dev, &dev_attr_emac_mal_tx_chan); \ 96 89 device_create_file(dev, &dev_attr_emac_wol_irq); \ 97 90 device_create_file(dev, &dev_attr_emac_mdio_idx); \ 91 + device_create_file(dev, &dev_attr_emac_tah_idx); \ 92 + device_create_file(dev, &dev_attr_emac_phy_mode); \ 93 + device_create_file(dev, &dev_attr_emac_phy_map); \ 98 94 } 99 95 100 96 #ifdef CONFIG_40x ··· 167 157 \ 168 158 void ocp_show_iic_data(struct device *dev) \ 169 159 { \ 170 - device_create_file(dev, &dev_attr_iic_fast_mode); \ 160 + device_create_file(dev, &dev_attr_iic_fast_mode); \ 171 161 } 172 162 #endif /* __IBM_OCP_H__ */ 173 163 #endif /* __KERNEL__ */