Skip to content

Commit

Permalink
net: stmmac: unexport stmmac_pltfr_init/exit()
Browse files Browse the repository at this point in the history
These functions are only used within the compilation unit they're defined
in so there's no reason to export them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240619140119.26777-1-brgl@bgdev.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Bartosz Golaszewski authored and Jakub Kicinski committed Jun 21, 2024
1 parent 0d6b1eb commit d21a103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
10 changes: 4 additions & 6 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,8 @@ EXPORT_SYMBOL_GPL(stmmac_get_platform_resources);
* Description: Call the platform's init callback (if any) and propagate
* the return value.
*/
int stmmac_pltfr_init(struct platform_device *pdev,
struct plat_stmmacenet_data *plat)
static int stmmac_pltfr_init(struct platform_device *pdev,
struct plat_stmmacenet_data *plat)
{
int ret = 0;

Expand All @@ -774,21 +774,19 @@ int stmmac_pltfr_init(struct platform_device *pdev,

return ret;
}
EXPORT_SYMBOL_GPL(stmmac_pltfr_init);

/**
* stmmac_pltfr_exit
* @pdev: pointer to the platform device
* @plat: driver data platform structure
* Description: Call the platform's exit callback (if any).
*/
void stmmac_pltfr_exit(struct platform_device *pdev,
struct plat_stmmacenet_data *plat)
static void stmmac_pltfr_exit(struct platform_device *pdev,
struct plat_stmmacenet_data *plat)
{
if (plat->exit)
plat->exit(pdev, plat->bsp_priv);
}
EXPORT_SYMBOL_GPL(stmmac_pltfr_exit);

/**
* stmmac_pltfr_probe
Expand Down
5 changes: 0 additions & 5 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);
int stmmac_get_platform_resources(struct platform_device *pdev,
struct stmmac_resources *stmmac_res);

int stmmac_pltfr_init(struct platform_device *pdev,
struct plat_stmmacenet_data *plat);
void stmmac_pltfr_exit(struct platform_device *pdev,
struct plat_stmmacenet_data *plat);

int stmmac_pltfr_probe(struct platform_device *pdev,
struct plat_stmmacenet_data *plat,
struct stmmac_resources *res);
Expand Down

0 comments on commit d21a103

Please sign in to comment.