From f65aa14e5248c89f7099f80ae1bf354c3d94a719 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 19 Jan 2023 12:44:54 -0600 Subject: Use pr_info when the mts-io device does not exist --- io-module/mts-io.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'io-module') diff --git a/io-module/mts-io.c b/io-module/mts-io.c index f5c61ac..6fd2eae 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -122,18 +122,18 @@ static int mts_io_probe(struct platform_device *pdev) platform_set_drvdata(pdev, mts_io_dd); if (!dev->parent) { - dev_info(dev, "Parent device is not found"); + dev_info(dev,"Parent device is not found"); } else if (dev->parent == &platform_bus) { - dev_info(dev, "Parent device is platform_bus. No need to create symlink"); + dev_info(dev,"Parent device is platform_bus. No need to create symlink"); goto exit; } - dev_info(dev "Creating symlink on platform_bus to %s", symlink_name); + dev_info(dev,"Creating symlink on platform_bus to %s", symlink_name); res = sysfs_create_link(&platform_bus.kobj, &dev->kobj, symlink_name); if (!res) { mts_io_dd->f_platform_bus_symlink = true; } else { - dev_warn(dev "Failed to create symlink"); + dev_warn(dev,"Failed to create symlink"); } exit: @@ -350,10 +350,10 @@ static ssize_t mts_attr_store_radio_reset(struct device *dev, hw_version = mts_get_hw_version(); if ((strncmp(hw_version,HW_VERSION_MTCDT_0_2,strlen(HW_VERSION_MTCDT_0_2)) == 0) || (strncmp(hw_version,HW_VERSION_MTCDTIP_0_1,strlen(HW_VERSION_MTCDTIP_0_1)) == 0)) { - dev_dbg(dev, "Using a reset time of 1250mS for USB hub\n"); + dev_dbg(dev,"Using a reset time of 1250mS for USB hub\n"); reset_time = 1250; } else { - dev_dbg(dev, "Using a reset time of 250mS\n"); + dev_dbg(dev,"Using a reset time of 250mS\n"); reset_time = 250; } @@ -1443,7 +1443,7 @@ static int __init mts_io_init(void) int ret; - dev_info(&mts_io_platform_device->dev,"mts-io init: " VERSION); + pr_info("mts-io init: " VERSION); /* We do a platform_driver_register to do a probe * of device tree and set the pinctrl/gpio settings. */ @@ -1621,7 +1621,7 @@ static void __exit mts_io_exit(void) if (DEVICE_CAPA(id_eeprom.capa, CAPA_LORA) && attr_group_lora) { mts_teardown_lora_port(); } - printk(KERN_INFO "mts-io exiting dev"); + pr_info("mts-io exiting dev"); } module_init(mts_io_init); -- cgit v1.2.3