wifi: rt2800soc: allow loading from OF
Add a single binding to help the already present dts files load the driver. More are possible but there doesn't seem to be a significant difference between them to justify this. Use wifi name per dtschema requirements. Added OF dependency to SOC CONFIG as adding of_match_table without OF being present makes no sense. Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Acked-by: Stanislaw Gruszka <stf_xl@wp.pl> Link: https://patch.msgid.link/20250722212856.11343-4-rosenp@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
f1fd79a647
commit
708e88b9d4
@@ -202,7 +202,7 @@ endif
|
||||
|
||||
config RT2800SOC
|
||||
tristate "Ralink WiSoC support"
|
||||
depends on SOC_RT288X || SOC_RT305X || SOC_MT7620 || COMPILE_TEST
|
||||
depends on OF && (SOC_RT288X || SOC_RT305X || SOC_MT7620 || COMPILE_TEST)
|
||||
select RT2X00_LIB_SOC
|
||||
select RT2X00_LIB_MMIO
|
||||
select RT2X00_LIB_CRYPTO
|
||||
|
||||
@@ -243,9 +243,16 @@ static int rt2800soc_probe(struct platform_device *pdev)
|
||||
return rt2x00soc_probe(pdev, &rt2800soc_ops);
|
||||
}
|
||||
|
||||
static const struct of_device_id rt2880_wmac_match[] = {
|
||||
{ .compatible = "ralink,rt2880-wifi" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rt2880_wmac_match);
|
||||
|
||||
static struct platform_driver rt2800soc_driver = {
|
||||
.driver = {
|
||||
.name = "rt2800_wmac",
|
||||
.of_match_table = rt2880_wmac_match,
|
||||
},
|
||||
.probe = rt2800soc_probe,
|
||||
.remove = rt2x00soc_remove,
|
||||
|
||||
Reference in New Issue
Block a user