Skip to content

Commit 987c0dd

Browse files
jhovoldgregkh
authored andcommitted
phy: broadcom: bcm63xx-usbh: fix section mismatches
commit 356d192 upstream. Platform drivers can be probed after their init sections have been discarded (e.g. on probe deferral or manual rebind through sysfs) so the probe function and match table must not live in init. Fixes: 783f6d3 ("phy: bcm63xx-usbh: Add BCM63xx USBH driver") Cc: stable@vger.kernel.org # 5.9 Cc: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20251017054537.6884-1-johan@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b07bfaf commit 987c0dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/phy/broadcom/phy-bcm63xx-usbh.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ static struct phy *bcm63xx_usbh_phy_xlate(struct device *dev,
375375
return of_phy_simple_xlate(dev, args);
376376
}
377377

378-
static int __init bcm63xx_usbh_phy_probe(struct platform_device *pdev)
378+
static int bcm63xx_usbh_phy_probe(struct platform_device *pdev)
379379
{
380380
struct device *dev = &pdev->dev;
381381
struct bcm63xx_usbh_phy *usbh;
@@ -432,7 +432,7 @@ static int __init bcm63xx_usbh_phy_probe(struct platform_device *pdev)
432432
return 0;
433433
}
434434

435-
static const struct of_device_id bcm63xx_usbh_phy_ids[] __initconst = {
435+
static const struct of_device_id bcm63xx_usbh_phy_ids[] = {
436436
{ .compatible = "brcm,bcm6318-usbh-phy", .data = &usbh_bcm6318 },
437437
{ .compatible = "brcm,bcm6328-usbh-phy", .data = &usbh_bcm6328 },
438438
{ .compatible = "brcm,bcm6358-usbh-phy", .data = &usbh_bcm6358 },
@@ -443,7 +443,7 @@ static const struct of_device_id bcm63xx_usbh_phy_ids[] __initconst = {
443443
};
444444
MODULE_DEVICE_TABLE(of, bcm63xx_usbh_phy_ids);
445445

446-
static struct platform_driver bcm63xx_usbh_phy_driver __refdata = {
446+
static struct platform_driver bcm63xx_usbh_phy_driver = {
447447
.driver = {
448448
.name = "bcm63xx-usbh-phy",
449449
.of_match_table = bcm63xx_usbh_phy_ids,

0 commit comments

Comments
 (0)