Convert the sole caller to ata_dev_dbg() and remove the definition.
Unified · Split
| @@ -2530,8 +2530,8 @@ int ata_dev_configure(struct ata_device *dev) · 2529 unmodified lines | |||
| 2530 | char modelbuf[ATA_ID_PROD_LEN+1]; | 2530 | char modelbuf[ATA_ID_PROD_LEN+1]; |
| 2531 | int rc; | 2531 | int rc; |
| 2532 | 2532 | ||
| 2533 | if (!ata_dev_enabled(dev) && ata_msg_info(ap)) { | 2533 | if (!ata_dev_enabled(dev)) { |
| 2534 | ata_dev_info(dev, "%s: ENTER/EXIT -- nodev\n", __func__); | 2534 | ata_dev_dbg(dev, "no device\n"); |
| 2535 | return 0; | 2535 | return 0; |
| 2536 | } | 2536 | } |
| 2537 | 2537 | ||
| @@ -5333,11 +5333,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host) · 2795 unmodified lines | |||
| 5333 | 5333 | ||
| 5334 | #if defined(ATA_VERBOSE_DEBUG) | 5334 | #if defined(ATA_VERBOSE_DEBUG) |
| 5335 | /* turn on all debugging levels */ | 5335 | /* turn on all debugging levels */ |
| 5336 | ap->msg_enable = 0x0003; | 5336 | ap->msg_enable = 0x0001; |
| 5337 | #elif defined(ATA_DEBUG) | ||
| 5338 | ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO; | ||
| 5339 | #else | ||
| 5340 | ap->msg_enable = ATA_MSG_DRV; | ||
| 5341 | #endif | 5337 | #endif |
| 5342 | 5338 | ||
| 5343 | mutex_init(&ap->scsi_scan_mutex); | 5339 | mutex_init(&ap->scsi_scan_mutex); |
| @@ -73,11 +73,9 @@ · 72 unmodified lines | |||
| 73 | 73 | ||
| 74 | enum { | 74 | enum { |
| 75 | ATA_MSG_DRV = 0x0001, | 75 | ATA_MSG_DRV = 0x0001, |
| 76 | ATA_MSG_INFO = 0x0002, | ||
| 77 | }; | 76 | }; |
| 78 | 77 | ||
| 79 | #define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV) | 78 | #define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV) |
| 80 | #define ata_msg_info(p) ((p)->msg_enable & ATA_MSG_INFO) | ||
| 81 | 79 | ||
| 82 | static inline u32 ata_msg_init(int dval, int default_msg_enable_bits) | 80 | static inline u32 ata_msg_init(int dval, int default_msg_enable_bits) |
| 83 | { | 81 | { |