// SPDX-License-Identifier: GPL-2.0+ // Platform driver for Loongson SPI Support // Copyright (C) 2023 Loongson Technology Corporation Limited #include <linux/err.h> #include <linux/mod_devicetable.h> #include <linux/platform_device.h> #include "spi-loongson.h" static int loongson_spi_platform_probe(struct platform_device *pdev) { … } static const struct of_device_id loongson_spi_id_table[] = …; MODULE_DEVICE_TABLE(of, loongson_spi_id_table); static struct platform_driver loongson_spi_plat_driver = …; module_platform_driver(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; MODULE_IMPORT_NS(…);