[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 72 /* Sysfs support */ 73 #define OCP_SYSFS_EMAC_DATA() \ 74 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_idx) \ 75 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_mux) \ 76 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_idx) \ ··· 80 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_tx_chan) \ 81 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, wol_irq) \ 82 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mdio_idx) \ 83 \ 84 void ocp_show_emac_data(struct device *dev) \ 85 { \ 86 device_create_file(dev, &dev_attr_emac_zmii_idx); \ 87 device_create_file(dev, &dev_attr_emac_zmii_mux); \ 88 device_create_file(dev, &dev_attr_emac_mal_idx); \ ··· 95 device_create_file(dev, &dev_attr_emac_mal_tx_chan); \ 96 device_create_file(dev, &dev_attr_emac_wol_irq); \ 97 device_create_file(dev, &dev_attr_emac_mdio_idx); \ 98 } 99 100 #ifdef CONFIG_40x ··· 167 \ 168 void ocp_show_iic_data(struct device *dev) \ 169 { \ 170 - device_create_file(dev, &dev_attr_iic_fast_mode); \ 171 } 172 #endif /* __IBM_OCP_H__ */ 173 #endif /* __KERNEL__ */
··· 71 72 /* Sysfs support */ 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) \ 76 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_idx) \ 77 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, zmii_mux) \ 78 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_idx) \ ··· 78 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, mal_tx_chan) \ 79 OCP_SYSFS_ADDTL(struct ocp_func_emac_data, "%d\n", emac, wol_irq) \ 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) \ 84 \ 85 void ocp_show_emac_data(struct device *dev) \ 86 { \ 87 + device_create_file(dev, &dev_attr_emac_rgmii_idx); \ 88 + device_create_file(dev, &dev_attr_emac_rgmii_mux); \ 89 device_create_file(dev, &dev_attr_emac_zmii_idx); \ 90 device_create_file(dev, &dev_attr_emac_zmii_mux); \ 91 device_create_file(dev, &dev_attr_emac_mal_idx); \ ··· 88 device_create_file(dev, &dev_attr_emac_mal_tx_chan); \ 89 device_create_file(dev, &dev_attr_emac_wol_irq); \ 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); \ 94 } 95 96 #ifdef CONFIG_40x ··· 157 \ 158 void ocp_show_iic_data(struct device *dev) \ 159 { \ 160 + device_create_file(dev, &dev_attr_iic_fast_mode); \ 161 } 162 #endif /* __IBM_OCP_H__ */ 163 #endif /* __KERNEL__ */